C# Class TestApp.StateObject

Afficher le fichier Open project: graffen/NLog.Targets.Syslog

Méthodes publiques

Méthode Description
BeginReceive ( AsyncCallback readCallback ) : void
EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void

Méthodes protégées

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

Private Methods

Méthode Description
BufferToString ( int position, int bytesRead ) : string
EndReceive ( IAsyncResult asyncResult ) : int

Method Details

BeginReceive() public méthode

public BeginReceive ( AsyncCallback readCallback ) : void
readCallback AsyncCallback
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult, AsyncCallback readCallback, Action receivedStringAction ) : void
asyncResult IAsyncResult
readCallback AsyncCallback
receivedStringAction Action
Résultat void

HandleChunks() protected abstract méthode

protected abstract HandleChunks ( string receivedString, Action receivedStringAction ) : void
receivedString string
receivedStringAction Action
Résultat void

HandleFirstReceive() protected abstract méthode

protected abstract HandleFirstReceive ( MemoryStream ms ) : void
ms System.IO.MemoryStream
Résultat void

StateObject() protected méthode

protected StateObject ( Socket socket ) : System
socket System.Net.Sockets.Socket
Résultat System