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, Int32, EndPoint)

Receives a datagram into a specific location in the data buffer and stores the end point.

[Visual Basic]
Overloads Public Function ReceiveFrom( _
   ByVal buffer As Array, _
   ByVal index As Integer, _
   ByVal request As Integer, _
   ByVal flags As Integer, _
   ByRef EP As EndPoint _
) As Integer
[C#]
public int ReceiveFrom(
   Array buffer,
   int index,
   int request,
   int flags,
   ref EndPoint EP
);
[C++]
public: int ReceiveFrom(
   Array* buffer,
   int index,
   int request,
   int flags,
   EndPoint** EP
);
[JScript]
public function ReceiveFrom(
   buffer : Array,
   index : int,
   request : int,
   flags : int,
   EP : EndPoint
) : int;

Parameters

buffer
Storage location for received data.
index
[To be supplied.]
request
[To be supplied.]
flags
[To be supplied.]
EP
[To be supplied.]

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