|
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines the interface for a WebSocket client that can send and receive various types of data frames over a network. More...
Public Member Functions | |
| int | SendText (byte[] buffer) |
| Sends a text message synchronously to the server. | |
| int | SendText (byte[] buffer, int position, int length) |
| Sends a text message synchronously to the server. | |
| bool | SendTextAsync (byte[] buffer) |
| Sends a text message asynchronously to the server. | |
| bool | SendTextAsync (byte[] buffer, int position, int length) |
| Sends a text message asynchronously to the server. | |
| int | SendBinary (byte[] buffer) |
| Sends a binary message synchronously to the server. | |
| int | SendBinary (byte[] buffer, int position, int length) |
| Sends a binary message synchronously to the server. | |
| bool | SendBinaryAsync (byte[] buffer) |
| Sends a binary message asynchronously to the server. | |
| bool | SendBinaryAsync (byte[] buffer, int position, int length) |
| Sends a binary message asynchronously to the server. | |
| int | SendClose (int status, byte[] buffer) |
| Sends a close frame with a status code synchronously to the server. | |
| int | SendClose (int status, byte[] buffer, int position, int length) |
| Sends a close frame with a status code synchronously to the server. | |
| bool | SendCloseAsync (int status, byte[] buffer) |
| Sends a close frame with a status code asynchronously to the server. | |
| bool | SendCloseAsync (int status, byte[] buffer, int position, int length) |
| Sends a close frame with a status code asynchronously to the server. | |
| int | SendPing (byte[] buffer) |
| Sends a ping frame synchronously to the server. | |
| int | SendPing (byte[] buffer, int position, int length) |
| Sends a ping frame synchronously to the server. | |
| bool | SendPingAsync (byte[] buffer) |
| Sends a ping frame asynchronously to the server. | |
| bool | SendPingAsync (byte[] buffer, int position, int length) |
| Sends a ping frame asynchronously to the server. | |
| int | SendPong (byte[] buffer) |
| Sends a pong frame synchronously to the server. | |
| int | SendPong (byte[] buffer, int position, int length) |
| Sends a pong frame synchronously to the server. | |
| bool | SendPongAsync (byte[] buffer) |
| Sends a pong frame asynchronously to the server. | |
| bool | SendPongAsync (byte[] buffer, int position, int length) |
| Sends a pong frame asynchronously to the server. | |
Public Member Functions inherited from XmobiTea.ProtonNetClient.IClient | |
| bool | Connect () |
| Connects the client to the server. | |
| bool | Reconnect () |
| Reconnects the client to the server. | |
| bool | Disconnect () |
| Disconnects the client from the server. | |
| bool | ConnectAsync () |
| Asynchronously connects the client to the server. | |
| bool | ReconnectAsync () |
| Asynchronously reconnects the client to the server. | |
| bool | DisconnectAsync () |
| Asynchronously disconnects the client from the server. | |
| INetworkStatistics | GetNetworkStatistics () |
| Retrieves the network statistics associated with the client. | |
| int | Send (byte[] buffer) |
| Sends data to the server. | |
| int | Send (byte[] buffer, int position, int length) |
| Sends data to the server starting from a specific position in the buffer. | |
| bool | SendAsync (byte[] buffer) |
| Asynchronously sends data to the server. | |
| bool | SendAsync (byte[] buffer, int position, int length) |
| Asynchronously sends data to the server starting from a specific position in the buffer. | |
Defines the interface for a WebSocket client that can send and receive various types of data frames over a network.
| int XmobiTea.ProtonNetClient.IWsClient.SendBinary | ( | byte[] | buffer | ) |
Sends a binary message synchronously to the server.
| buffer | The byte array containing the binary message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendBinary | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a binary message synchronously to the server.
| buffer | The byte array containing the binary message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendBinaryAsync | ( | byte[] | buffer | ) |
Sends a binary message asynchronously to the server.
| buffer | The byte array containing the binary message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendBinaryAsync | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a binary message asynchronously to the server.
| buffer | The byte array containing the binary message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendClose | ( | int | status, |
| byte[] | buffer ) |
Sends a close frame with a status code synchronously to the server.
| status | The close status code. |
| buffer | The byte array containing the close message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendClose | ( | int | status, |
| byte[] | buffer, | ||
| int | position, | ||
| int | length ) |
Sends a close frame with a status code synchronously to the server.
| status | The close status code. |
| buffer | The byte array containing the close message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendCloseAsync | ( | int | status, |
| byte[] | buffer ) |
Sends a close frame with a status code asynchronously to the server.
| status | The close status code. |
| buffer | The byte array containing the close message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendCloseAsync | ( | int | status, |
| byte[] | buffer, | ||
| int | position, | ||
| int | length ) |
Sends a close frame with a status code asynchronously to the server.
| status | The close status code. |
| buffer | The byte array containing the close message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendPing | ( | byte[] | buffer | ) |
Sends a ping frame synchronously to the server.
| buffer | The byte array containing the ping message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendPing | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a ping frame synchronously to the server.
| buffer | The byte array containing the ping message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendPingAsync | ( | byte[] | buffer | ) |
Sends a ping frame asynchronously to the server.
| buffer | The byte array containing the ping message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendPingAsync | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a ping frame asynchronously to the server.
| buffer | The byte array containing the ping message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendPong | ( | byte[] | buffer | ) |
Sends a pong frame synchronously to the server.
| buffer | The byte array containing the pong message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendPong | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a pong frame synchronously to the server.
| buffer | The byte array containing the pong message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendPongAsync | ( | byte[] | buffer | ) |
Sends a pong frame asynchronously to the server.
| buffer | The byte array containing the pong message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendPongAsync | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a pong frame asynchronously to the server.
| buffer | The byte array containing the pong message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendText | ( | byte[] | buffer | ) |
Sends a text message synchronously to the server.
| buffer | The byte array containing the text message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| int XmobiTea.ProtonNetClient.IWsClient.SendText | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a text message synchronously to the server.
| buffer | The byte array containing the text message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendTextAsync | ( | byte[] | buffer | ) |
Sends a text message asynchronously to the server.
| buffer | The byte array containing the text message. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IWsClient.SendTextAsync | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends a text message asynchronously to the server.
| buffer | The byte array containing the text message. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.