Receives data from a connected socket.
[Visual Basic] Overloads Public Function Receive( _ ByVal buffer As Array, _ ByVal request As Integer, _ ByVal flags As Integer _ ) As Integer [C#] public int Receive( Array buffer, int request, int flags ); [C++] public: int Receive( Array* buffer, int request, int flags ); [JScript] public function Receive( buffer : Array, request : int, flags : int ) : int;
If successful, the number of bytes received. If unsuccessful, then if the socket was closed with Close, returns 0; otherwise, returns an invalid socket error.
Exception Type | Condition |
---|---|
InvalidOperationException | [To be supplied.] |
Socket Class | Socket Members | System.Net.Sockets Namespace | Socket.Receive Overload List