Socket.Receive Method
Receives data from a bound socket and places the data in a buffer array.
Overload List
Name | Description |
---|---|
Socket.Receive (Byte[]) | Receives all of the data currently available from a bound socket and places the data in a buffer array. |
Socket.Receive (Byte[], Int32, Int32, SocketFlags) | Receives data from a bound socket, according to specified flags, and places the data in a buffer array, beginning at a specified location in the buffer. |
Socket.Receive (Byte[], Int32, SocketFlags) | Receives data from a bound socket, according to specified flags, and places the data in a buffer array. |
Socket.Receive (Byte[], SocketFlags) | Receives all of the data currently available from a bound socket, according to specified flags, and places the data in a buffer array. |
Remarks
If you are using a connection-oriented protocol, you must call either the Connect method (to establish a remote host connection) or the Accept method (to accept an incoming connection before calling Receive). The Receive method will read only data that arrives from the remote host established by the Connect or Accept method. If you are using a connectionless protocol, you can also use the ReceiveFrom method, which enables you to receive data arriving from any host.
Version Information
Available in .NET Micro Framework version 2.0, 2.5