C# Class Microsoft.Networking.UdpPort

Inheritance: IPort
Afficher le fichier Open project: Dronacharya-Org/Dronacharya Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
OnPacketReceived ( IAsyncResult ar ) : void
OnSent ( IAsyncResult ar ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Connect() public méthode

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

Connect() public méthode

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
Résultat void

GetLocalAddresses() public static méthode

public static GetLocalAddresses ( ) : IEnumerable
Résultat IEnumerable

Read() public méthode

public Read ( byte buffer, int bytesToRead ) : int
buffer byte
bytesToRead int
Résultat int

WaitForOneMessage() public méthode

public WaitForOneMessage ( System.TimeSpan delay ) : IPEndPoint
delay System.TimeSpan
Résultat System.Net.IPEndPoint

Write() public méthode

public Write ( byte buffer, int count ) : void
buffer byte
count int
Résultat void

Write() public méthode

public Write ( string msg ) : void
msg string
Résultat void