|
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines the interface for a client that can connect, disconnect, and send data over a network. Supports both synchronous and asynchronous operations. More...
Public Member Functions | |
| 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 client that can connect, disconnect, and send data over a network. Supports both synchronous and asynchronous operations.
| bool XmobiTea.ProtonNetClient.IClient.Connect | ( | ) |
Connects the client to the server.
Implemented in XmobiTea.ProtonNet.Client.Socket.Clients.SocketSslClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketTcpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketUdpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient, XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, XmobiTea.ProtonNetClient.UdpClient, XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IClient.ConnectAsync | ( | ) |
Asynchronously connects the client to the server.
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, XmobiTea.ProtonNetClient.UdpClient, XmobiTea.ProtonNetClient.WsClient, and XmobiTea.ProtonNetClient.WssClient.
| bool XmobiTea.ProtonNetClient.IClient.Disconnect | ( | ) |
Disconnects the client from the server.
Implemented in XmobiTea.ProtonNet.Client.Socket.Clients.SocketSslClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketTcpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketUdpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient, XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| bool XmobiTea.ProtonNetClient.IClient.DisconnectAsync | ( | ) |
Asynchronously disconnects the client from the server.
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| INetworkStatistics XmobiTea.ProtonNetClient.IClient.GetNetworkStatistics | ( | ) |
Retrieves the network statistics associated with the client.
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| bool XmobiTea.ProtonNetClient.IClient.Reconnect | ( | ) |
Reconnects the client to the server.
Implemented in XmobiTea.ProtonNet.Client.Socket.Clients.SocketSslClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketTcpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketUdpClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient, XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| bool XmobiTea.ProtonNetClient.IClient.ReconnectAsync | ( | ) |
Asynchronously reconnects the client to the server.
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| int XmobiTea.ProtonNetClient.IClient.Send | ( | byte[] | buffer | ) |
Sends data to the server.
| buffer | The data to send. |
Implemented in XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient, XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| int XmobiTea.ProtonNetClient.IClient.Send | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Sends data to the server starting from a specific position in the buffer.
| buffer | The data to send. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| bool XmobiTea.ProtonNetClient.IClient.SendAsync | ( | byte[] | buffer | ) |
Asynchronously sends data to the server.
| buffer | The data to send. |
Implemented in XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient, XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient, XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.
| bool XmobiTea.ProtonNetClient.IClient.SendAsync | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Asynchronously sends data to the server starting from a specific position in the buffer.
| buffer | The data to send. |
| position | The starting position in the buffer. |
| length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.SslClient, XmobiTea.ProtonNetClient.TcpClient, and XmobiTea.ProtonNetClient.UdpClient.