ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents the interface for a server, providing methods for starting, stopping, and managing connections and data broadcasts. More...
Public Member Functions | |
bool | Start () |
Starts the server. | |
bool | Stop () |
Stops the server. | |
bool | Restart () |
Restarts the server. | |
bool | BroadcastAll (byte[] buffer) |
Broadcasts a message to all connected clients. | |
bool | BroadcastAll (byte[] buffer, int position, int length) |
Broadcasts a message to all connected clients with a specified position and length. | |
bool | BroadcastAllAsync (byte[] buffer) |
Broadcasts a message asynchronously to all connected clients. | |
bool | BroadcastAllAsync (byte[] buffer, int position, int length) |
Broadcasts a message asynchronously to all connected clients with a specified position and length. | |
bool | DisconnectAll () |
Disconnects all connected clients. | |
IServerNetworkStatistics | GetNetworkStatistics () |
Gets the network statistics for the server. | |
Represents the interface for a server, providing methods for starting, stopping, and managing connections and data broadcasts.
bool XmobiTea.ProtonNetServer.IServer.BroadcastAll | ( | byte[] | buffer | ) |
Broadcasts a message to all connected clients.
buffer | The message buffer to broadcast. |
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, XmobiTea.ProtonNetServer.UdpServer, XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IServer.BroadcastAll | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a message to all connected clients with a specified position and length.
buffer | The message buffer to broadcast. |
position | The starting position in the buffer. |
length | The length of the data to broadcast. |
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, XmobiTea.ProtonNetServer.UdpServer, XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IServer.BroadcastAllAsync | ( | byte[] | buffer | ) |
Broadcasts a message asynchronously to all connected clients.
buffer | The message buffer to broadcast. |
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, XmobiTea.ProtonNetServer.UdpServer, XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IServer.BroadcastAllAsync | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a message asynchronously to all connected clients with a specified position and length.
buffer | The message buffer to broadcast. |
position | The starting position in the buffer. |
length | The length of the data to broadcast. |
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, XmobiTea.ProtonNetServer.UdpServer, XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IServer.DisconnectAll | ( | ) |
Disconnects all connected clients.
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, and XmobiTea.ProtonNetServer.UdpServer.
IServerNetworkStatistics XmobiTea.ProtonNetServer.IServer.GetNetworkStatistics | ( | ) |
Gets the network statistics for the server.
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, and XmobiTea.ProtonNetServer.UdpServer.
bool XmobiTea.ProtonNetServer.IServer.Restart | ( | ) |
Restarts the server.
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, and XmobiTea.ProtonNetServer.UdpServer.
bool XmobiTea.ProtonNetServer.IServer.Start | ( | ) |
Starts the server.
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, and XmobiTea.ProtonNetServer.UdpServer.
bool XmobiTea.ProtonNetServer.IServer.Stop | ( | ) |
Stops the server.
Implemented in XmobiTea.ProtonNetServer.SslServer, XmobiTea.ProtonNetServer.TcpServer, and XmobiTea.ProtonNetServer.UdpServer.