C# Class PgmTransport.SocketReceiver

Inheritance: IDisposable
Exibir arquivo Open project: jbouzaglou/PetPigeonsESB

Public Properties

Property Type Description
EventsForMessagesReceived Action>.Dictionary

Public Methods

Method 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

Protected Methods

Method Description
CreateAcceptSocket ( IPEndPoint endpoint ) : Socket

Private Methods

Method 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 method

protected abstract CreateAcceptSocket ( IPEndPoint endpoint ) : Socket
endpoint System.Net.IPEndPoint
return Socket

Dispose() public method

public Dispose ( ) : void
return void

ListenToEndpoint() public method

public ListenToEndpoint ( IPEndPoint endpoint ) : void
endpoint System.Net.IPEndPoint
return void

RegisterCallback() public method

public RegisterCallback ( IPEndPoint endpoint, Action action ) : void
endpoint System.Net.IPEndPoint
action Action
return void

SocketReceiver() public method

public SocketReceiver ( ) : System
return System

StopListeningTo() public method

public StopListeningTo ( IPEndPoint endpoint ) : void
endpoint System.Net.IPEndPoint
return void

UnRegisterCallback() public method

public UnRegisterCallback ( IPEndPoint endpoint, Action action ) : void
endpoint System.Net.IPEndPoint
action Action
return void

Property Details

EventsForMessagesReceived public_oe property

public Dictionary> EventsForMessagesReceived
return Action>.Dictionary