ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines the interface for a UDP client that can connect, disconnect, send, and receive data over a network. Supports both synchronous and asynchronous operations. More...
Public Member Functions | |
int | Send (EndPoint endPoint, byte[] buffer) |
Sends data to the specified endpoint synchronously. | |
int | Send (EndPoint endPoint, byte[] buffer, int position, int length) |
Sends data to the specified endpoint synchronously, starting from a specific position in the buffer. | |
bool | SendAsync (EndPoint endPoint, byte[] buffer) |
Sends data to the specified endpoint asynchronously. | |
bool | SendAsync (EndPoint endPoint, byte[] buffer, int position, int length) |
Sends data to the specified endpoint asynchronously, starting from a specific position in the buffer. | |
void | JoinMulticastGroup (string address) |
Joins a multicast group by the specified address. | |
void | LeaveMulticastGroup (string address) |
Leaves a multicast group by the specified address. | |
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 UDP client that can connect, disconnect, send, and receive data over a network. Supports both synchronous and asynchronous operations.
void XmobiTea.ProtonNetClient.IUdpClient.JoinMulticastGroup | ( | string | address | ) |
Joins a multicast group by the specified address.
address | The address of the multicast group. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.
void XmobiTea.ProtonNetClient.IUdpClient.LeaveMulticastGroup | ( | string | address | ) |
Leaves a multicast group by the specified address.
address | The address of the multicast group. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.
int XmobiTea.ProtonNetClient.IUdpClient.Send | ( | EndPoint | endPoint, |
byte[] | buffer ) |
Sends data to the specified endpoint synchronously.
endPoint | The endpoint to which the data is sent. |
buffer | The data to send. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.
int XmobiTea.ProtonNetClient.IUdpClient.Send | ( | EndPoint | endPoint, |
byte[] | buffer, | ||
int | position, | ||
int | length ) |
Sends data to the specified endpoint synchronously, starting from a specific position in the buffer.
endPoint | The endpoint to which the data is sent. |
buffer | The data to send. |
position | The starting position in the buffer. |
length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.
bool XmobiTea.ProtonNetClient.IUdpClient.SendAsync | ( | EndPoint | endPoint, |
byte[] | buffer ) |
Sends data to the specified endpoint asynchronously.
endPoint | The endpoint to which the data is sent. |
buffer | The data to send. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.
bool XmobiTea.ProtonNetClient.IUdpClient.SendAsync | ( | EndPoint | endPoint, |
byte[] | buffer, | ||
int | position, | ||
int | length ) |
Sends data to the specified endpoint asynchronously, starting from a specific position in the buffer.
endPoint | The endpoint to which the data is sent. |
buffer | The data to send. |
position | The starting position in the buffer. |
length | The number of bytes to send. |
Implemented in XmobiTea.ProtonNetClient.UdpClient.