ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.ProtonNet.Client.Socket Namespace Reference

Classes

interface  ISocketClientPeer
 Interface representing a socket client peer, which is responsible for managing socket connections, sending events, and handling callbacks for various socket events. More...
 
interface  ISocketPingPong
 Interface that defines the service method for managing ping-pong operations over a socket connection. More...
 
class  SocketClientPeer
 Represents a client peer that manages socket connections, sends and receives operations, and handles various socket events such as connection, disconnection, and errors. Inherits from ClientPeer and implements ISocketClientPeer and IAfterAutoBind. More...
 
class  SocketPingPong
 Implements the ISocketPingPong interface to manage the ping-pong operations between the client and server over a socket connection. More...
 

Functions

delegate void OnConnected (int connectionId, string serverSessionId)
 Delegate for handling events when a connection is successfully established.
 
delegate void OnDisconnected (DisconnectReason reason, string message)
 Delegate for handling events when a disconnection occurs.
 
delegate void OnOperationEvent (OperationEvent operationEvent)
 Delegate for handling incoming operation events.
 
delegate void OnError (System.Net.Sockets.SocketError error)
 Delegate for handling socket errors.
 

Function Documentation

◆ OnConnected()

delegate void XmobiTea.ProtonNet.Client.Socket.OnConnected ( int connectionId,
string serverSessionId )

Delegate for handling events when a connection is successfully established.

Parameters
connectionIdThe unique ID of the connection.
serverSessionIdThe session ID provided by the server.

◆ OnDisconnected()

delegate void XmobiTea.ProtonNet.Client.Socket.OnDisconnected ( DisconnectReason reason,
string message )

Delegate for handling events when a disconnection occurs.

Parameters
reasonThe reason for the disconnection.
messageA message describing the disconnection.

◆ OnError()

delegate void XmobiTea.ProtonNet.Client.Socket.OnError ( System.Net.Sockets.SocketError error)

Delegate for handling socket errors.

Parameters
errorThe socket error encountered.

◆ OnOperationEvent()

delegate void XmobiTea.ProtonNet.Client.Socket.OnOperationEvent ( OperationEvent operationEvent)

Delegate for handling incoming operation events.

Parameters
operationEventThe operation event received.