ProxySocket.Receive Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
Receive(Byte[], Int32, Int32)
Receives the specified amount of data from a connected ProxySocket into a specific location of the receive buffer and using the supplied flags.
Declaration
public int Receive(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
Int32 | offset | The position in the buffer at which to store the received data. |
Int32 | count | The number of bytes to receive. |
Returns
Type | Description |
---|---|
Int32 | 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.
Receive(Byte[], Int32, Int32, SocketFlags)
Receives the specified amount of data from a connected ProxySocket into a specific location of the receive buffer and using the supplied flags.
Declaration
public int Receive(byte[] buffer, int offset, int count, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
Int32 | offset | The position in the buffer at which to store the received data. |
Int32 | count | The number of bytes to receive. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes received. |
Implements
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.
Receive(Byte[])
Receives data from a connected ProxySocket.
Declaration
public int Receive(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
Returns
Type | Description |
---|---|
Int32 | 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.
Receive(Byte[], SocketFlags)
Receives data from a connected ProxySocket using the supplied flags.
Declaration
public int Receive(byte[] buffer, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | 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.
Receive(Byte[], Int32, SocketFlags)
Receives the specified amount of data from a connected ProxySocket using the supplied flags.
Declaration
public int Receive(byte[] buffer, int count, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The storage location for the received data. |
Int32 | count | The number of bytes to receive. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | 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.