|
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines the interface for a UDP server, extending the basic server functionalities. More...
Public Member Functions | |
| bool | Start (string multicastAddress, int multicastPort) |
| Starts the UDP server with the specified multicast address and port. | |
| int | Send (EndPoint endpoint, byte[] buffer) |
| Sends a datagram to the specified endpoint. | |
| int | Send (EndPoint endpoint, byte[] buffer, int position, int length) |
| Sends a datagram to the specified endpoint with the given position and length. | |
| bool | SendAsync (EndPoint endpoint, byte[] buffer) |
| Asynchronously sends a datagram to the specified endpoint. | |
| bool | SendAsync (EndPoint endpoint, byte[] buffer, int position, int length) |
| Asynchronously sends a datagram to the specified endpoint with the given 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. | |
Defines the interface for a UDP server, extending the basic server functionalities.
| int XmobiTea.ProtonNetServer.IUdpServer.Send | ( | EndPoint | endpoint, |
| byte[] | buffer ) |
Sends a datagram to the specified endpoint.
| endpoint | The destination endpoint. |
| buffer | The data buffer to send. |
Implemented in XmobiTea.ProtonNetServer.UdpServer.
| int XmobiTea.ProtonNetServer.IUdpServer.Send | ( | EndPoint | endpoint, |
| byte[] | buffer, | ||
| int | position, | ||
| int | length ) |
Sends a datagram to the specified endpoint with the given position and length.
| endpoint | The destination endpoint. |
| buffer | The data buffer to send. |
| position | The starting position in the buffer. |
| length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.UdpServer.
| bool XmobiTea.ProtonNetServer.IUdpServer.SendAsync | ( | EndPoint | endpoint, |
| byte[] | buffer ) |
Asynchronously sends a datagram to the specified endpoint.
| endpoint | The destination endpoint. |
| buffer | The data buffer to send. |
Implemented in XmobiTea.ProtonNetServer.UdpServer.
| bool XmobiTea.ProtonNetServer.IUdpServer.SendAsync | ( | EndPoint | endpoint, |
| byte[] | buffer, | ||
| int | position, | ||
| int | length ) |
Asynchronously sends a datagram to the specified endpoint with the given position and length.
| endpoint | The destination endpoint. |
| buffer | The data buffer to send. |
| position | The starting position in the buffer. |
| length | The length of the data to send. |
Implemented in XmobiTea.ProtonNetServer.UdpServer.
| bool XmobiTea.ProtonNetServer.IUdpServer.Start | ( | string | multicastAddress, |
| int | multicastPort ) |
Starts the UDP server with the specified multicast address and port.
| multicastAddress | The multicast address to join. |
| multicastPort | The multicast port to use. |
Implemented in XmobiTea.ProtonNetServer.UdpServer.