C# Class Brunet.Transport.UdpEdgeListener

Inheritance: EdgeListener, IEdgeSendHandler
Mostrar archivo Open project: pstjuste/brunet

Protected Properties

Property Type Description
_bytes long
_id_ht System.Collections.Hashtable
_isstarted int
_listen_finished_event System.Threading.ManualResetEvent
_listen_thread Thread
_monitor_fe FuzzyEvent
_nat_hist NatHistory
_nat_tas IEnumerable
_port int
_rand System.Random
_remote_id_ht System.Collections.Hashtable
_running int
_s Socket
_send_handler IEdgeSendHandler
_send_queue LFBlockingQueue
_send_queue_delta int
_send_queue_max int
_send_thread Thread
_sync object
_tas IEnumerable
ipep System.Net.IPEndPoint

Public Methods

Method Description
CloseHandler ( object edge, EventArgs args ) : void
CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
HandleEdgeSend ( Edge from, ICopyable p ) : void
Start ( ) : void
Stop ( ) : void
UdpEdgeListener ( ) : System
UdpEdgeListener ( int port ) : System
UdpEdgeListener ( int port, IEnumerable ips ) : System
UdpEdgeListener ( int port, IEnumerable local_config_ips, TAAuthorizer ta_auth ) : System
UpdateLocalTAs ( Edge e, TransportAddress ta ) : void

Protected Methods

Method Description
GuessLocalEndPoint ( IEnumerable tas ) : IPEndPoint
HandleControlPacket ( int remoteid, int n_localid, MemBlock buffer, EndPoint ep ) : void
HandleDataPacket ( int remoteid, int localid, MemBlock packet, EndPoint end, object state ) : void
ListenThread ( ) : void
MonitorLogOff ( ) : void
MonitorLogSwitch ( ) : void
SendControlPacket ( EndPoint end, int remoteid, int localid, ControlCode c, object state ) : void
SendThread ( ) : void

Method Details

CloseHandler() public method

public CloseHandler ( object edge, EventArgs args ) : void
edge object
args System.EventArgs
return void

CreateEdgeTo() public method

public CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
ta TransportAddress
ecb EdgeCreationCallback
return void

GuessLocalEndPoint() protected method

protected GuessLocalEndPoint ( IEnumerable tas ) : IPEndPoint
tas IEnumerable
return System.Net.IPEndPoint

HandleControlPacket() protected method

protected HandleControlPacket ( int remoteid, int n_localid, MemBlock buffer, EndPoint ep ) : void
remoteid int
n_localid int
buffer Brunet.Util.MemBlock
ep System.Net.EndPoint
return void

HandleDataPacket() protected method

protected HandleDataPacket ( int remoteid, int localid, MemBlock packet, EndPoint end, object state ) : void
remoteid int
localid int
packet Brunet.Util.MemBlock
end System.Net.EndPoint
state object
return void

HandleEdgeSend() public method

public HandleEdgeSend ( Edge from, ICopyable p ) : void
from Edge
p ICopyable
return void

ListenThread() protected method

protected ListenThread ( ) : void
return void

MonitorLogOff() protected method

protected MonitorLogOff ( ) : void
return void

MonitorLogSwitch() protected method

protected MonitorLogSwitch ( ) : void
return void

SendControlPacket() protected method

protected SendControlPacket ( EndPoint end, int remoteid, int localid, ControlCode c, object state ) : void
end System.Net.EndPoint
remoteid int
localid int
c ControlCode
state object
return void

SendThread() protected method

protected SendThread ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UdpEdgeListener() public method

public UdpEdgeListener ( ) : System
return System

UdpEdgeListener() public method

public UdpEdgeListener ( int port ) : System
port int
return System

UdpEdgeListener() public method

public UdpEdgeListener ( int port, IEnumerable ips ) : System
port int
ips IEnumerable
return System

UdpEdgeListener() public method

public UdpEdgeListener ( int port, IEnumerable local_config_ips, TAAuthorizer ta_auth ) : System
port int
local_config_ips IEnumerable
ta_auth TAAuthorizer
return System

UpdateLocalTAs() public method

public UpdateLocalTAs ( Edge e, TransportAddress ta ) : void
e Edge
ta TransportAddress
return void

Property Details

_bytes protected_oe property

protected long _bytes
return long

_id_ht protected_oe property

protected Hashtable,System.Collections _id_ht
return System.Collections.Hashtable

_isstarted protected_oe property

protected int _isstarted
return int

_listen_finished_event protected_oe property

protected ManualResetEvent,System.Threading _listen_finished_event
return System.Threading.ManualResetEvent

_listen_thread protected_oe property

protected Thread _listen_thread
return Thread

_monitor_fe protected_oe property

protected FuzzyEvent _monitor_fe
return FuzzyEvent

_nat_hist protected_oe property

protected NatHistory _nat_hist
return NatHistory

_nat_tas protected_oe property

protected IEnumerable _nat_tas
return IEnumerable

_port protected_oe property

protected int _port
return int

_rand protected_oe property

protected Random,System _rand
return System.Random

_remote_id_ht protected_oe property

protected Hashtable,System.Collections _remote_id_ht
return System.Collections.Hashtable

_running protected_oe property

protected int _running
return int

_s protected_oe property

protected Socket _s
return Socket

_send_handler protected_oe property

protected IEdgeSendHandler _send_handler
return IEdgeSendHandler

_send_queue protected_oe property

protected LFBlockingQueue _send_queue
return LFBlockingQueue

_send_queue_delta protected_oe property

protected int _send_queue_delta
return int

_send_queue_max protected_oe property

protected int _send_queue_max
return int

_send_thread protected_oe property

protected Thread _send_thread
return Thread

_sync protected_oe property

protected object _sync
return object

_tas protected_oe property

protected IEnumerable _tas
return IEnumerable

ipep protected_oe property

protected IPEndPoint,System.Net ipep
return System.Net.IPEndPoint