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.Receive (Array, Int32, Int32, Int32)

Receives data from a connected socket into a specific location of the receive buffer.

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

Parameters

buffer
Storage location for received data.
index
The location in buffer to store the received data.
request
The size of buffer.
flags
[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.Receive Overload List