Method | Description | |
---|---|---|
Receive ( this socket, |
Receive a string message from a remote socket in blocking mode.
|
|
Receive ( this socket, |
Receive a string message from a remote socket in non-blocking mode with a specified timeout.
|
|
ReceiveFrame ( this socket ) : Frame |
Receive a single frame from a remote socket in blocking mode. This overload will allocate a new Frame for receiving all available data in the message-part. |
|
ReceiveFrame ( this socket, Frame frame ) : Frame |
Receive a single frame from a remote socket in blocking mode. This overload will receive all available data in the message-part. If the buffer size of frame is insufficient, a new buffer will be allocated. |
|
ReceiveFrame ( this socket, Frame frame, System.TimeSpan timeout ) : Frame |
Receive a single frame from a remote socket in non-blocking mode with a specified timeout. This overload will receive all available data in the message-part. If the buffer size of frame is insufficient, a new buffer will be allocated. |
|
ReceiveFrame ( this socket, System.TimeSpan timeout ) : Frame |
Receive a single frame from a remote socket in non-blocking mode with a specified timeout. This overload will allocate a new Frame for receiving all available data in the message-part. |
|
ReceiveMessage ( this socket ) : Message |
Receive all parts of a multi-part message from a remote socket in blocking mode.
|
|
ReceiveMessage ( this socket, Message message ) : Message |
Receive all parts of a multi-part message from a remote socket in blocking mode and append them to a given message.
|
|
ReceiveMessage ( this socket, Message message, System.TimeSpan frameTimeout ) : Message |
Receive all parts of a multi-part message from a remote socket in non-blocking mode. The frameTimeout will be used for each underlying Receive operation. If the timeout elapses before the last message is received, an incomplete message will be returned. |
|
ReceiveMessage ( this socket, System.TimeSpan frameTimeout ) : Message |
Receive all parts of a multi-part message from a remote socket in non-blocking mode. The frameTimeout will be used for each underlying Receive operation. If the timeout elapses before the last message is received, an incomplete message will be returned. Use the ReceiveMessage(Socket,Message,System.TimeSpan) overload to continue appending message-parts if the returned Message has its Message.IsComplete property set to false. |
|
Send ( this socket, byte buffer ) : SendStatus |
Queue a single-part (or final multi-part) message buffer to be sent by the socket in blocking mode. This method assumes that the message fills the entire buffer. |
|
Send ( this socket, byte buffer, System.TimeSpan timeout ) : SendStatus |
Queue a single-part (or final multi-part) message buffer to be sent by the socket in non-blocking mode with a specified timeout. This method assumes that the message fills the entire buffer. |
|
Send ( this socket, string message, |
Queue a single-part (or final multi-part) message string to be sent by the socket in blocking mode.
|
|
Send ( this socket, string message, |
Queue a single-part (or final multi-part) message string to be sent by the socket in non-blocking mode with a specified timeout.
|
|
SendFrame ( this socket, Frame frame ) : SendStatus |
Queue a message frame to be sent by the socket in blocking mode. The Frame.HasMore property on frame will be used to indicate whether more frames will follow in the current multi-part message sequence. |
|
SendFrame ( this socket, Frame frame, System.TimeSpan timeout ) : SendStatus |
Queue a message frame to be sent by the socket in non-blocking mode with a specified timeout. The Frame.HasMore property on frame will be used to indicate whether more frames will follow in the current multi-part message sequence. |
|
SendMessage ( this socket, Message message ) : SendStatus |
Queue a multi-part message to be sent by the socket in blocking mode.
|
|
SendMore ( this socket, byte buffer ) : SendStatus |
Queue a non-final message-part buffer to be sent by the socket in blocking mode. This method assumes that the message fills the entire buffer. The final message-part in this series must be sent with Send(Socket,byte[]) or another overload that does not specify SocketFlags.SendMore. |
|
SendMore ( this socket, byte buffer, System.TimeSpan timeout ) : SendStatus |
Queue a non-final message-part buffer to be sent by the socket in non-blocking mode with a specified timeout. This method assumes that the message fills the entire buffer. The final message-part in this series must be sent with Send(Socket,byte[],TimeSpan) or another overload that does not specify SocketFlags.SendMore. |
|
SendMore ( this socket, string message, |
Queue a non-final message-part string to be sent by the socket in blocking mode.
|
|
SendMore ( this socket, string message, |
Queue a non-final message-part string to be sent by the socket in non-blocking mode with a specified timeout.
|
Method | Description | |
---|---|---|
SetFrameProperties ( Frame frame, Socket socket, int size ) : void | ||
VerifyEncoding ( |
||
VerifyFrame ( Frame frame ) : void | ||
VerifyMessage ( Message message ) : void | ||
VerifySocket ( Socket socket ) : void | ||
VerifyStringMessage ( string message ) : void |
public static Receive ( this socket, |
||
socket | this | A |
encoding | The |
|
return | string |
public static Receive ( this socket, |
||
socket | this | A |
encoding | The |
|
timeout | System.TimeSpan | A |
return | string |
public static ReceiveFrame ( this socket ) : Frame | ||
socket | this | A |
return | Frame |
public static ReceiveFrame ( this socket, Frame frame ) : Frame | ||
socket | this | A |
frame | Frame | A |
return | Frame |
public static ReceiveFrame ( this socket, Frame frame, System.TimeSpan timeout ) : Frame | ||
socket | this | A |
frame | Frame | A |
timeout | System.TimeSpan | A |
return | Frame |
public static ReceiveFrame ( this socket, System.TimeSpan timeout ) : Frame | ||
socket | this | A |
timeout | System.TimeSpan | A |
return | Frame |
public static ReceiveMessage ( this socket ) : Message | ||
socket | this | A |
return | Message |
public static ReceiveMessage ( this socket, Message message ) : Message | ||
socket | this | A |
message | Message | The |
return | Message |
public static ReceiveMessage ( this socket, Message message, System.TimeSpan frameTimeout ) : Message | ||
socket | this | A |
message | Message | The |
frameTimeout | System.TimeSpan | A |
return | Message |
public static ReceiveMessage ( this socket, System.TimeSpan frameTimeout ) : Message | ||
socket | this | A |
frameTimeout | System.TimeSpan | A |
return | Message |
public static Send ( this socket, byte buffer ) : SendStatus | ||
socket | this | A |
buffer | byte | A |
return | SendStatus |
public static Send ( this socket, byte buffer, System.TimeSpan timeout ) : SendStatus | ||
socket | this | A |
buffer | byte | A |
timeout | System.TimeSpan | A |
return | SendStatus |
public static Send ( this socket, string message, |
||
socket | this | A |
message | string | A |
encoding | The |
|
return | SendStatus |
public static Send ( this socket, string message, |
||
socket | this | A |
message | string | A |
encoding | The |
|
timeout | System.TimeSpan | A |
return | SendStatus |
public static SendFrame ( this socket, Frame frame ) : SendStatus | ||
socket | this | A |
frame | Frame | A |
return | SendStatus |
public static SendFrame ( this socket, Frame frame, System.TimeSpan timeout ) : SendStatus | ||
socket | this | A |
frame | Frame | A |
timeout | System.TimeSpan | A |
return | SendStatus |
public static SendMessage ( this socket, Message message ) : SendStatus | ||
socket | this | A |
message | Message | A |
return | SendStatus |
public static SendMore ( this socket, byte buffer ) : SendStatus | ||
socket | this | A |
buffer | byte | A |
return | SendStatus |
public static SendMore ( this socket, byte buffer, System.TimeSpan timeout ) : SendStatus | ||
socket | this | A |
buffer | byte | A |
timeout | System.TimeSpan | A |
return | SendStatus |
public static SendMore ( this socket, string message, |
||
socket | this | A |
message | string | A |
encoding | The |
|
return | SendStatus |
public static SendMore ( this socket, string message, |
||
socket | this | A |
message | string | A |
encoding | The |
|
timeout | System.TimeSpan | A |
return | SendStatus |