C# Class Sharpex2D.Network.Protocols.Udp.UdpClient

Inheritance: IClient, IDisposable
Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode Description
BeginReceive ( ) : void

Receives a package.

Connect ( IPAddress ip ) : void

Connects to the local server.

Disconnect ( ) : void

Disconnect from the local server.

Dispose ( ) : void

Disposes the object.

Send ( IBasePackage package ) : void

Sends a package to the given receivers.

Send ( IBasePackage package, IPAddress receiver ) : void

Sends a package to the given receivers.

Subscribe ( IClientListener subscriber ) : void

Subscribes to a Client.

Subscribe ( IPackageListener subscriber ) : void

Subscribes to a Client.

UdpClient ( ) : System

Initializes a new UdpClient class.

Unsubscribe ( IClientListener unsubscriber ) : void

Unsubscribes from a Client.

Unsubscribe ( IPackageListener unsubscriber ) : void

Unsubscribes from a Client.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the object.

Private Methods

Méthode Description
GetPackageSubscriber ( Type type ) : IEnumerable

Gets a list of all matching package listeners.

Idle ( ) : void

Idles the thread.

InternalBeginReceive ( ) : void

Receives data.

Method Details

BeginReceive() public méthode

Receives a package.
public BeginReceive ( ) : void
Résultat void

Connect() public méthode

Connects to the local server.
public Connect ( IPAddress ip ) : void
ip System.Net.IPAddress The Serverip.
Résultat void

Disconnect() public méthode

Disconnect from the local server.
public Disconnect ( ) : void
Résultat void

Dispose() public méthode

Disposes the object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool Indicates whether managed resources should be disposed.
Résultat void

Send() public méthode

Sends a package to the given receivers.
public Send ( IBasePackage package ) : void
package IBasePackage The Package.
Résultat void

Send() public méthode

Sends a package to the given receivers.
public Send ( IBasePackage package, IPAddress receiver ) : void
package IBasePackage The Package.
receiver System.Net.IPAddress The Receiver.
Résultat void

Subscribe() public méthode

Subscribes to a Client.
public Subscribe ( IClientListener subscriber ) : void
subscriber IClientListener The Subscriber.
Résultat void

Subscribe() public méthode

Subscribes to a Client.
public Subscribe ( IPackageListener subscriber ) : void
subscriber IPackageListener The Subscriber.
Résultat void

UdpClient() public méthode

Initializes a new UdpClient class.
public UdpClient ( ) : System
Résultat System

Unsubscribe() public méthode

Unsubscribes from a Client.
public Unsubscribe ( IClientListener unsubscriber ) : void
unsubscriber IClientListener The Unsubscriber.
Résultat void

Unsubscribe() public méthode

Unsubscribes from a Client.
public Unsubscribe ( IPackageListener unsubscriber ) : void
unsubscriber IPackageListener The Unsubscriber.
Résultat void