ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents the interface for a session, providing methods for managing the connection, sending data, and retrieving network statistics. More...
Public Member Functions | |
bool | Disconnect () |
Disconnects the session. | |
int | Send (byte[] buffer) |
Sends data synchronously to the connected client. | |
int | Send (byte[] buffer, int position, int length) |
Sends data synchronously to the connected client with a specified position and length. | |
bool | SendAsync (byte[] buffer) |
Sends data asynchronously to the connected client. | |
bool | SendAsync (byte[] buffer, int position, int length) |
Sends data asynchronously to the connected client with a specified position and length. | |
INetworkStatistics | GetNetworkStatistics () |
Gets the network statistics for the session. | |
Represents the interface for a session, providing methods for managing the connection, sending data, and retrieving network statistics.
bool XmobiTea.ProtonNetServer.ISession.Disconnect | ( | ) |
Disconnects the session.
Implemented in XmobiTea.ProtonNetServer.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.
INetworkStatistics XmobiTea.ProtonNetServer.ISession.GetNetworkStatistics | ( | ) |
Gets the network statistics for the session.
Implemented in XmobiTea.ProtonNetServer.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.
int XmobiTea.ProtonNetServer.ISession.Send | ( | byte[] | buffer | ) |
Sends data synchronously to the connected client.
buffer | The data buffer to send. |
Implemented in XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWsSession, XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWssSession, XmobiTea.ProtonNetServer.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.
int XmobiTea.ProtonNetServer.ISession.Send | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Sends data synchronously to the connected client with a specified position and length.
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.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.
bool XmobiTea.ProtonNetServer.ISession.SendAsync | ( | byte[] | buffer | ) |
Sends data asynchronously to the connected client.
buffer | The data buffer to send. |
Implemented in XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWsSession, XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWssSession, XmobiTea.ProtonNetServer.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.
bool XmobiTea.ProtonNetServer.ISession.SendAsync | ( | byte[] | buffer, |
int | position, | ||
int | length ) |
Sends data asynchronously to the connected client with a specified position and length.
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.SslSession, XmobiTea.ProtonNetServer.TcpSession, and XmobiTea.ProtonNetServer.UdpSession.