C# Class netki.PacketDatagramServer

Mostrar archivo Open project: raxptor/putki-historical

Public Methods

Method Description
GetHost ( ) : string
GetPort ( ) : int
PacketDatagramServer ( OnDatagramDelegate pkt ) : System
Send ( byte data, int offset, int length, ulong endpoint ) : void
Start ( int port, int max_peers = 100 ) : void

Private Methods

Method Description
NextRead ( ) : void
ReadLoop ( ) : void

Method Details

GetHost() public method

public GetHost ( ) : string
return string

GetPort() public method

public GetPort ( ) : int
return int

PacketDatagramServer() public method

public PacketDatagramServer ( OnDatagramDelegate pkt ) : System
pkt OnDatagramDelegate
return System

Send() public method

public Send ( byte data, int offset, int length, ulong endpoint ) : void
data byte
offset int
length int
endpoint ulong
return void

Start() public method

public Start ( int port, int max_peers = 100 ) : void
port int
max_peers int
return void