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

Classes

interface  IOperationModel
 Defines the interface for operation models in the networking layer. More...
 
class  OperationDisconnect
 Represents a disconnect operation in the networking layer. More...
 
class  OperationEvent
 Represents an event operation in the networking layer. More...
 
class  OperationHandshake
 Represents a handshake operation in the networking layer. More...
 
class  OperationHandshakeAck
 Represents a handshake acknowledgment operation in the networking layer. More...
 
class  OperationPing
 Represents a Ping operation in the networking layer, typically used to check connectivity or latency. More...
 
class  OperationPong
 Represents a Pong operation in the networking layer, typically used as a response to a Ping. More...
 
class  OperationRequest
 Represents a request for an operation in the networking layer. More...
 
class  OperationResponse
 Represents the response to an operation in the networking layer. More...
 
class  ReturnCode
 Static class containing return codes for various network operations.
 
class  SendParameters
 Struct representing parameters used during a send operation. More...
 

Enumerations

enum  DisconnectReason : byte {
  Unknown = 0 , CantConnectServer = 1 , MaxSession = 2 , InvalidOperationHandshake = 3 ,
  MaxSessionPerUser = 4 , HandshakeTimeout = 5 , IdleTimeout = 6 , DisconnectByClient = 7
}
 Enumeration representing the reasons for disconnection in the networking layer. More...
 
enum  SendResult {
  Ok = 0 , Disconnected = 1 , SendBufferFull = 2 , MessageTooBig = 3 ,
  SessionNull = 4 , EncryptionNotSupported = 5 , Failed = 6
}
 Enumeration representing the result of a send operation. More...
 

Enumeration Type Documentation

◆ DisconnectReason

Enumeration representing the reasons for disconnection in the networking layer.

Enumerator
Unknown 

The disconnection reason is unknown.

CantConnectServer 

The client was unable to connect to the server.

MaxSession 

The maximum number of sessions has been reached.

InvalidOperationHandshake 

The operation handshake was invalid.

MaxSessionPerUser 

The maximum number of sessions per user has been reached.

HandshakeTimeout 

The handshake operation timed out.

IdleTimeout 

The connection was idle for too long and timed out.

DisconnectByClient 

The client disconnected intentionally.

◆ SendResult

Enumeration representing the result of a send operation.

Enumerator
Ok 

The operation completed successfully.

Disconnected 

The connection was disconnected.

SendBufferFull 

The send buffer is full, preventing the operation from completing.

MessageTooBig 

The message is too large to be sent.

SessionNull 

The session is null, indicating an invalid or missing session.

EncryptionNotSupported 

The operation failed because encryption is not supported.

Failed 

The send operation failed due to an unspecified error.