C# Class TestApp.StateObject

Show file Open project: graffen/NLog.Targets.Syslog

Public Methods

Method Description
BeginReceive ( AsyncCallback readCallback ) : void
EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void

Protected Methods

Method Description
HandleChunks ( string receivedString, Action receivedStringAction ) : void
HandleFirstReceive ( MemoryStream ms ) : void
StateObject ( Socket socket ) : System

Private Methods

Method Description
BufferToString ( int position, int bytesRead ) : string
EndReceive ( IAsyncResult asyncResult ) : int

Method Details

BeginReceive() public method

public BeginReceive ( AsyncCallback readCallback ) : void
readCallback AsyncCallback
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void
asyncResult IAsyncResult
readCallback AsyncCallback
receivedStringAction Action
return void

HandleChunks() protected abstract method

protected abstract HandleChunks ( string receivedString, Action receivedStringAction ) : void
receivedString string
receivedStringAction Action
return void

HandleFirstReceive() protected abstract method

protected abstract HandleFirstReceive ( MemoryStream ms ) : void
ms System.IO.MemoryStream
return void

StateObject() protected method

protected StateObject ( Socket socket ) : System
socket System.Net.Sockets.Socket
return System