ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents the interface for a WebSocket server, providing methods for broadcasting and closing WebSocket connections. More...
Public Member Functions | |
bool | CloseAll () |
Closes all WebSocket connections. | |
bool | CloseAll (int status) |
Closes all WebSocket connections with the specified status code. | |
bool | CloseAll (int status, byte[] buffer) |
Closes all WebSocket connections with the specified status code and a buffer. | |
bool | CloseAll (int status, byte[] buffer, int position, int length) |
Closes all WebSocket connections with the specified status code and a buffer with a specified position and length. | |
bool | MulticastText (byte[] buffer) |
Broadcasts a text message to all WebSocket connections. | |
bool | MulticastText (byte[] buffer, int position, int length) |
Broadcasts a text message to all WebSocket connections with a specified position and length. | |
bool | MulticastTextAsync (byte[] buffer) |
Broadcasts a text message asynchronously to all WebSocket connections. | |
bool | MulticastTextAsync (byte[] buffer, int position, int length) |
Broadcasts a text message asynchronously to all WebSocket connections with a specified position and length. | |
bool | MulticastBinary (byte[] buffer) |
Broadcasts a binary message to all WebSocket connections. | |
bool | MulticastBinary (byte[] buffer, int position, int length) |
Broadcasts a binary message to all WebSocket connections with a specified position and length. | |
bool | MulticastBinaryAsync (byte[] buffer) |
Broadcasts a binary message asynchronously to all WebSocket connections. | |
bool | MulticastBinaryAsync (byte[] buffer, int position, int length) |
Broadcasts a binary message asynchronously to all WebSocket connections with a specified position and length. | |
bool | MulticastPing (byte[] buffer) |
Broadcasts a ping message to all WebSocket connections. | |
bool | MulticastPing (byte[] buffer, int position, int length) |
Broadcasts a ping message to all WebSocket connections with a specified position and length. | |
bool | MulticastPingAsync (byte[] buffer) |
Broadcasts a ping message asynchronously to all WebSocket connections. | |
bool | MulticastPingAsync (byte[] buffer, int position, int length) |
Broadcasts a ping message asynchronously to all WebSocket connections with a specified position and length. | |
Public Member Functions inherited from XmobiTea.ProtonNetServer.IServer | |
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 WebSocket server, providing methods for broadcasting and closing WebSocket connections.
bool XmobiTea.ProtonNetServer.IWsServer.CloseAll | ( | ) |
Closes all WebSocket connections.
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.CloseAll | ( | int | status | ) |
Closes all WebSocket connections with the specified status code.
status | The status code to send with the close frame. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.CloseAll | ( | int | status, |
byte[] | buffer ) |
Closes all WebSocket connections with the specified status code and a buffer.
status | The status code to send with the close frame. |
buffer | The buffer containing additional data to send with the close frame. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.CloseAll | ( | int | status, |
byte[] | buffer, | ||
int | position, | ||
int | length ) |
Closes all WebSocket connections with the specified status code and a buffer with a specified position and length.
status | The status code to send with the close frame. |
buffer | The buffer containing additional data to send with the close frame. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastBinary | ( | byte[] | buffer | ) |
Broadcasts a binary message to all WebSocket connections.
buffer | The buffer containing the binary message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastBinary | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a binary message to all WebSocket connections with a specified position and length.
buffer | The buffer containing the binary message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastBinaryAsync | ( | byte[] | buffer | ) |
Broadcasts a binary message asynchronously to all WebSocket connections.
buffer | The buffer containing the binary message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastBinaryAsync | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a binary message asynchronously to all WebSocket connections with a specified position and length.
buffer | The buffer containing the binary message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastPing | ( | byte[] | buffer | ) |
Broadcasts a ping message to all WebSocket connections.
buffer | The buffer containing the ping message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastPing | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a ping message to all WebSocket connections with a specified position and length.
buffer | The buffer containing the ping message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastPingAsync | ( | byte[] | buffer | ) |
Broadcasts a ping message asynchronously to all WebSocket connections.
buffer | The buffer containing the ping message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastPingAsync | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a ping message asynchronously to all WebSocket connections with a specified position and length.
buffer | The buffer containing the ping message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastText | ( | byte[] | buffer | ) |
Broadcasts a text message to all WebSocket connections.
buffer | The buffer containing the text message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastText | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a text message to all WebSocket connections with a specified position and length.
buffer | The buffer containing the text message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastTextAsync | ( | byte[] | buffer | ) |
Broadcasts a text message asynchronously to all WebSocket connections.
buffer | The buffer containing the text message. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.
bool XmobiTea.ProtonNetServer.IWsServer.MulticastTextAsync | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Broadcasts a text message asynchronously to all WebSocket connections with a specified position and length.
buffer | The buffer containing the text message. |
position | The starting position in the buffer. |
length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.WsServer, and XmobiTea.ProtonNetServer.WssServer.