C# Class LKCamelot.Connection

Show file Open project: vans163/LKEmu Class Usage Examples

Public Properties

Property Type Description
BufferSize int
_server Server

Public Methods

Method Description
BeginReceive ( AsyncCallback callback, object state ) : IAsyncResult
Connection ( Server server, Socket socket ) : System
Disconnect ( ) : void
EndReceive ( IAsyncResult result ) : int
Receive ( int start, int count ) : int
Send ( byte buffer ) : int
Send ( byte buffer, int start, int count, SocketFlags flags ) : int
_Send ( byte buffer, int start, int count, SocketFlags flags ) : int

Method Details

BeginReceive() public method

public BeginReceive ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
return IAsyncResult

Connection() public method

public Connection ( Server server, Socket socket ) : System
server Server
socket Socket
return System

Disconnect() public method

public Disconnect ( ) : void
return void

EndReceive() public method

public EndReceive ( IAsyncResult result ) : int
result IAsyncResult
return int

Receive() public method

public Receive ( int start, int count ) : int
start int
count int
return int

Send() public method

public Send ( byte buffer ) : int
buffer byte
return int

Send() public method

public Send ( byte buffer, int start, int count, SocketFlags flags ) : int
buffer byte
start int
count int
flags SocketFlags
return int

_Send() public method

public _Send ( byte buffer, int start, int count, SocketFlags flags ) : int
buffer byte
start int
count int
flags SocketFlags
return int

Property Details

BufferSize public static property

public static int BufferSize
return int

_server public property

public Server,LKCamelot _server
return Server