TlsSocket.Send Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
Send(Byte[])
Sends data to a connected TlsSocket.
Declaration
public int Send(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data to be sent. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |
Send(Byte[], SocketFlags)
Sends data to a connected TlsSocket using the supplied flags.
Declaration
public int Send(byte[] buffer, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data to be sent. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |
Send(Byte[], Int32, SocketFlags)
Sends the specified amount of data to a connected TlsSocket using the supplied flags.
Declaration
public int Send(byte[] buffer, int size, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data to be sent. |
Int32 | size | The number of bytes to send. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |
Send(Byte[], Int32, Int32)
Sends the specified amount of data to a connected TlsSocket starting at the indicated location in the data and using the supplied flags.|
Declaration
public int Send(byte[] buffer, int offset, int size)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data to be sent. |
Int32 | offset | The position in the data buffer to begin sending data. |
Int32 | size | The number of bytes to send. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |
Send(ArraySegment<Byte>)
Sends data to a connected TlsSocket.
Declaration
public int Send(ArraySegment<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
ArraySegment<Byte> | buffer | The data to be sent. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |
Send(Byte[], Int32, Int32, SocketFlags)
Sends the specified amount of data to a connected TlsSocket starting at the indicated location in the data and using the supplied flags.
Declaration
public int Send(byte[] buffer, int offset, int size, SocketFlags socketFlags)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data to be sent. |
Int32 | offset | The position in the data buffer to begin sending data. |
Int32 | size | The number of bytes to send. |
SocketFlags | socketFlags | A bitwise combination of the SocketFlags values. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes sent. |