Receives the specified amount of data from a connected ProxySocket using the supplied flags.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Function Receive ( _ buffer As Byte(), _ count As Integer, _ socketFlags As SocketFlags _ ) As Integer |
C# |
---|
public int Receive( byte[] buffer, int count, SocketFlags socketFlags ) |
Parameters
- buffer
- Type: array<System..::..Byte>[]()[][]
The storage location for the received data.
- count
- Type: System..::..Int32
The number of bytes to receive.
- socketFlags
- Type: System.Net.Sockets..::..SocketFlags
A bitwise combination of the SocketFlags values.
Return Value
The number of bytes received.Remarks
Prior to receiving data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept()()()() methods.