C# 클래스 Sharpex2D.Network.Protocols.Udp.UdpClient

상속: IClient, IDisposable
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes the object.

비공개 메소드들

메소드 설명
GetPackageSubscriber ( Type type ) : IEnumerable

Gets a list of all matching package listeners.

Idle ( ) : void

Idles the thread.

InternalBeginReceive ( ) : void

Receives data.

메소드 상세

BeginReceive() 공개 메소드

Receives a package.
public BeginReceive ( ) : void
리턴 void

Connect() 공개 메소드

Connects to the local server.
public Connect ( IPAddress ip ) : void
ip System.Net.IPAddress The Serverip.
리턴 void

Disconnect() 공개 메소드

Disconnect from the local server.
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Disposes the object.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool Indicates whether managed resources should be disposed.
리턴 void

Send() 공개 메소드

Sends a package to the given receivers.
public Send ( IBasePackage package ) : void
package IBasePackage The Package.
리턴 void

Send() 공개 메소드

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

Subscribe() 공개 메소드

Subscribes to a Client.
public Subscribe ( IClientListener subscriber ) : void
subscriber IClientListener The Subscriber.
리턴 void

Subscribe() 공개 메소드

Subscribes to a Client.
public Subscribe ( IPackageListener subscriber ) : void
subscriber IPackageListener The Subscriber.
리턴 void

UdpClient() 공개 메소드

Initializes a new UdpClient class.
public UdpClient ( ) : System
리턴 System

Unsubscribe() 공개 메소드

Unsubscribes from a Client.
public Unsubscribe ( IClientListener unsubscriber ) : void
unsubscriber IClientListener The Unsubscriber.
리턴 void

Unsubscribe() 공개 메소드

Unsubscribes from a Client.
public Unsubscribe ( IPackageListener unsubscriber ) : void
unsubscriber IPackageListener The Unsubscriber.
리턴 void