C# Class NLog.AbstractTcpSocket

Show file Open project: sschmid/NLog Class Usage Examples

Protected Properties

Property Type Description
_log Logger
_socket System.Net.Sockets.Socket

Public Methods

Method Description
Disconnect ( ) : void
Send ( byte bytes ) : void
SendWith ( Socket socket, byte bytes ) : void

Protected Methods

Method Description
disconnectedByRemote ( Socket socket ) : void
onReceived ( IAsyncResult ar ) : void
onSent ( IAsyncResult ar ) : void
receive ( ReceiveVO receiveVO ) : void
startReceiving ( Socket socket ) : void
triggerOnDisconnect ( ) : void
triggerOnReceive ( ReceiveVO receiveVO, int bytesReceived ) : void
trimmedBuffer ( byte buffer, int length ) : byte[]

Method Details

Disconnect() public abstract method

public abstract Disconnect ( ) : void
return void

Send() public abstract method

public abstract Send ( byte bytes ) : void
bytes byte
return void

SendWith() public method

public SendWith ( Socket socket, byte bytes ) : void
socket System.Net.Sockets.Socket
bytes byte
return void

disconnectedByRemote() protected abstract method

protected abstract disconnectedByRemote ( Socket socket ) : void
socket System.Net.Sockets.Socket
return void

onReceived() protected method

protected onReceived ( IAsyncResult ar ) : void
ar IAsyncResult
return void

onSent() protected method

protected onSent ( IAsyncResult ar ) : void
ar IAsyncResult
return void

receive() protected method

protected receive ( ReceiveVO receiveVO ) : void
receiveVO ReceiveVO
return void

startReceiving() protected method

protected startReceiving ( Socket socket ) : void
socket System.Net.Sockets.Socket
return void

triggerOnDisconnect() protected method

protected triggerOnDisconnect ( ) : void
return void

triggerOnReceive() protected method

protected triggerOnReceive ( ReceiveVO receiveVO, int bytesReceived ) : void
receiveVO ReceiveVO
bytesReceived int
return void

trimmedBuffer() protected method

protected trimmedBuffer ( byte buffer, int length ) : byte[]
buffer byte
length int
return byte[]

Property Details

_log protected property

protected Logger _log
return Logger

_socket protected property

protected Socket,System.Net.Sockets _socket
return System.Net.Sockets.Socket