Diarkis C# Client SDK
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Diarkis.Core Class Reference

Network core of Diarkis client class. More...

Inheritance diagram for Diarkis.Core:
Diarkis.Tcp Diarkis.Udp Diarkis.Ws

Public Member Functions

void Dispose ()
 

Static Public Member Functions

static string GetVersion ()
 

Static Public Attributes

const int CONN_TIMEOUT = -1
 Status of OnConnect event. This status indicates the connection has timedout. More...
 
const int CONN_ERR = -2
 Status of OnConnect event. This status indicates the failure of opening a TCP socket. More...
 
const int CONN_SUCCESS = 0
 Status of OnConnect event. This status indicates the connection has been successfully established. More...
 

Protected Member Functions

void NewTCP (string addr, int port)
 
void NewTCPDualMode (string addr, int port)
 
void ConnectTCP (string addr, int port)
 
void CloseTCP ()
 
NetworkStream GetTCPStream ()
 
void SetTCPNoDelay (bool noDelay)
 
bool IsTCPConnected ()
 
int GetTCPAvailable ()
 
void ConnectUDP (string addr, int port)
 
void ConnectUDPDualMode (string addr, int port)
 
void CloseUDP ()
 
bool IsUDPConnected ()
 
bool UDPPolling (int pollingTime)
 
int GetUDPAvailable ()
 
string FindLocalAddress (IPAddress ip)
 
int UDPRcvFrom (byte[] buff, ref EndPoint ep)
 
void SendUDP (byte[] msg, int length)
 
void SendUDPTo (byte[] msg, int length, IPEndPoint ip)
 
IPEndPoint GetRemoteIP ()
 
EndPoint GetConnetedUDPEndPoint ()
 
IPAddress GetIPAddress_ (string addr, int port)
 
virtual void Dispose (bool disposing)
 

Protected Attributes

bool IsDualMode = false
 

Detailed Description

Network core of Diarkis client class.

Member Data Documentation

◆ CONN_ERR

const int Diarkis.Core.CONN_ERR = -2
static

Status of OnConnect event. This status indicates the failure of opening a TCP socket.

◆ CONN_SUCCESS

const int Diarkis.Core.CONN_SUCCESS = 0
static

Status of OnConnect event. This status indicates the connection has been successfully established.

◆ CONN_TIMEOUT

const int Diarkis.Core.CONN_TIMEOUT = -1
static

Status of OnConnect event. This status indicates the connection has timedout.


The documentation for this class was generated from the following file: