C# 클래스 Microsoft.Networking.UdpPort

상속: IPort
파일 보기 프로젝트 열기: Dronacharya-Org/Dronacharya 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
OnPacketReceived ( IAsyncResult ar ) : void
OnSent ( IAsyncResult ar ) : void

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

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

Connect() 공개 메소드

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
리턴 void

GetLocalAddresses() 공개 정적인 메소드

public static GetLocalAddresses ( ) : IEnumerable
리턴 IEnumerable

Read() 공개 메소드

public Read ( byte buffer, int bytesToRead ) : int
buffer byte
bytesToRead int
리턴 int

WaitForOneMessage() 공개 메소드

public WaitForOneMessage ( System.TimeSpan delay ) : IPEndPoint
delay System.TimeSpan
리턴 System.Net.IPEndPoint

Write() 공개 메소드

public Write ( byte buffer, int count ) : void
buffer byte
count int
리턴 void

Write() 공개 메소드

public Write ( string msg ) : void
msg string
리턴 void