NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Socket.ReceiveFrom (Array, Int32, Int32, EndPoint)

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;

Parameters

buffer
Storage location for received data.
request
The size of buffer.
flags
Message receive flags.
EP
The source end point.

Return Value

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.

Exceptions

Exception Type Condition
InvalidOperationException [To be supplied.]

See Also

Socket Class | Socket Members | System.Net.Sockets Namespace | Socket.ReceiveFrom Overload List