C# Class Microsoft.Networking.UdpPort

Inheritance: IPort
Mostrar archivo Open project: Dronacharya-Org/Dronacharya Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Connect ( IPEndPoint localEndPoint ) : void

Connect to any remote machine that wants to send to the given local port.

Connect ( IPEndPoint localEndPoint, IPEndPoint remoteEndPoint ) : void

Connect to specific remote end point and only send and receive from that endpoint.

GetLocalAddresses ( ) : IEnumerable
Read ( byte buffer, int bytesToRead ) : int
WaitForOneMessage ( System.TimeSpan delay ) : IPEndPoint
Write ( byte buffer, int count ) : void
Write ( string msg ) : void

Private Methods

Method Description
OnPacketReceived ( IAsyncResult ar ) : void
OnSent ( IAsyncResult ar ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

Connect to any remote machine that wants to send to the given local port.
public Connect ( IPEndPoint localEndPoint ) : void
localEndPoint System.Net.IPEndPoint
return void

Connect() public method

Connect to specific remote end point and only send and receive from that endpoint.
public Connect ( IPEndPoint localEndPoint, IPEndPoint remoteEndPoint ) : void
localEndPoint System.Net.IPEndPoint
remoteEndPoint System.Net.IPEndPoint
return void

GetLocalAddresses() public static method

public static GetLocalAddresses ( ) : IEnumerable
return IEnumerable

Read() public method

public Read ( byte buffer, int bytesToRead ) : int
buffer byte
bytesToRead int
return int

WaitForOneMessage() public method

public WaitForOneMessage ( System.TimeSpan delay ) : IPEndPoint
delay System.TimeSpan
return System.Net.IPEndPoint

Write() public method

public Write ( byte buffer, int count ) : void
buffer byte
count int
return void

Write() public method

public Write ( string msg ) : void
msg string
return void