C# Class Server.Network.ClientSocket

Inheritance: IClientSocket
Show file Open project: adrianrussell/MicroFrameworkWebServer Class Usage Examples

Public Methods

Method Description
ClientSocket ( Socket socket ) : System.Net
Close ( ) : void
Dispose ( ) : void
Receive ( int bytesReceived ) : byte[]
Send ( byte buffer, int size ) : int
Send ( string buffer ) : int

Method Details

ClientSocket() public method

public ClientSocket ( Socket socket ) : System.Net
socket Socket
return System.Net

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Receive() public method

public Receive ( int bytesReceived ) : byte[]
bytesReceived int
return byte[]

Send() public method

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

Send() public method

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