Receives a datagram and stores the source end point.
[Visual Basic] Overloads Public Function ReceiveFrom( _ ByVal buffer As Array, _ ByVal request As Integer, _ ByVal flags As Integer, _ ByRef EP As EndPoint _ ) As Integer [C#] public int ReceiveFrom( Array buffer, int request, int flags, ref EndPoint EP ); [C++] public: int ReceiveFrom( Array* buffer, int request, int flags, EndPoint** EP ); [JScript] public function ReceiveFrom( buffer : Array, request : int, flags : int, EP : EndPoint ) : 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.ReceiveFrom Overload List