C# Class Codebreak.Framework.Network.AbstractSocketClient

Show file Open project: hussein-aitlahcen/codebreak

Public Methods

Method Description
AbstractSocketClient ( ) : System

Connect ( String host, int port ) : void

Disconnect ( ) : void

Send ( byte data ) : void

Protected Methods

Method Description
OnBytesRead ( byte buffer, int offset, int length ) : void

OnConnected ( ) : void

OnDisconnected ( ) : void

Private Methods

Method Description
IOCompleted ( object sender, SocketAsyncEventArgs saea ) : void

ProcessConnected ( ) : void

ProcessDisconnect ( SocketAsyncEventArgs saea ) : void

ProcessReceived ( SocketAsyncEventArgs saea ) : void

ProcessSent ( SocketAsyncEventArgs saea ) : void

Method Details

AbstractSocketClient() public method

public AbstractSocketClient ( ) : System
return System

Connect() public method

public Connect ( String host, int port ) : void
host String
port int
return void

Disconnect() public method

public Disconnect ( ) : void
return void

OnBytesRead() protected abstract method

protected abstract OnBytesRead ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

OnConnected() protected abstract method

protected abstract OnConnected ( ) : void
return void

OnDisconnected() protected abstract method

protected abstract OnDisconnected ( ) : void
return void

Send() public method

public Send ( byte data ) : void
data byte
return void