C# Class PgmTransport.SocketReceiver

Inheritance: IDisposable
Afficher le fichier Open project: jbouzaglou/PetPigeonsESB

Méthodes publiques

Свойство Type Description
EventsForMessagesReceived Action>.Dictionary

Méthodes publiques

Méthode Description
Dispose ( ) : void
ListenToEndpoint ( IPEndPoint endpoint ) : void
RegisterCallback ( IPEndPoint endpoint, Action action ) : void
SocketReceiver ( ) : System
StopListeningTo ( IPEndPoint endpoint ) : void
UnRegisterCallback ( IPEndPoint endpoint, Action action ) : void

Méthodes protégées

Méthode Description
CreateAcceptSocket ( IPEndPoint endpoint ) : Socket

Private Methods

Méthode Description
CheckError ( Socket socket, SocketAsyncEventArgs e ) : bool
DoReceive ( SocketAsyncEventArgs e ) : void
DummyEvent ( Stream obj ) : void
OnAccept ( object sender, SocketAsyncEventArgs e ) : void
OnReceive ( object sender, SocketAsyncEventArgs e ) : void

Method Details

CreateAcceptSocket() protected abstract méthode

protected abstract CreateAcceptSocket ( IPEndPoint endpoint ) : Socket
endpoint System.Net.IPEndPoint
Résultat Socket

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ListenToEndpoint() public méthode

public ListenToEndpoint ( IPEndPoint endpoint ) : void
endpoint System.Net.IPEndPoint
Résultat void

RegisterCallback() public méthode

public RegisterCallback ( IPEndPoint endpoint, Action action ) : void
endpoint System.Net.IPEndPoint
action Action
Résultat void

SocketReceiver() public méthode

public SocketReceiver ( ) : System
Résultat System

StopListeningTo() public méthode

public StopListeningTo ( IPEndPoint endpoint ) : void
endpoint System.Net.IPEndPoint
Résultat void

UnRegisterCallback() public méthode

public UnRegisterCallback ( IPEndPoint endpoint, Action action ) : void
endpoint System.Net.IPEndPoint
action Action
Résultat void

Property Details

EventsForMessagesReceived public_oe property

public Dictionary> EventsForMessagesReceived
Résultat Action>.Dictionary