C# Class Open.Nat.Searcher

Exibir arquivo Open project: mcatanzariti/Open.NAT

Public Properties

Property Type Description
DeviceFound EventHandler

Protected Properties

Property Type Description
Sockets List

Public Methods

Method Description
AnalyseReceivedResponse ( IPAddress localAddress, byte response, IPEndPoint endpoint ) : NatDevice
CloseSockets ( ) : void
Search ( CancellationToken cancelationToken ) : Task>

Protected Methods

Method Description
Discover ( UdpClient client, CancellationToken cancelationToken ) : void

Private Methods

Method Description
Discover ( CancellationToken cancelationToken ) : void
RaiseDeviceFound ( NatDevice device ) : void
Receive ( CancellationToken cancelationToken ) : void

Method Details

AnalyseReceivedResponse() public abstract method

public abstract AnalyseReceivedResponse ( IPAddress localAddress, byte response, IPEndPoint endpoint ) : NatDevice
localAddress System.Net.IPAddress
response byte
endpoint System.Net.IPEndPoint
return NatDevice

CloseSockets() public method

public CloseSockets ( ) : void
return void

Discover() protected abstract method

protected abstract Discover ( UdpClient client, CancellationToken cancelationToken ) : void
client System.Net.Sockets.UdpClient
cancelationToken System.Threading.CancellationToken
return void

Search() public method

public Search ( CancellationToken cancelationToken ) : Task>
cancelationToken System.Threading.CancellationToken
return Task>

Property Details

DeviceFound public_oe property

public EventHandler DeviceFound
return EventHandler

Sockets protected_oe property

protected List Sockets
return List