C# 클래스 System.Net.Sockets.UdpClient

상속: IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
AllowNatTraversal ( bool allowed ) : void
BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, string hostname, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
Dispose ( ) : void
DropMulticastGroup ( IPAddress multicastAddr ) : void
DropMulticastGroup ( IPAddress multicastAddr, int ifindex ) : void
EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
EndSend ( IAsyncResult asyncResult ) : int
JoinMulticastGroup ( IPAddress multicastAddr ) : void
JoinMulticastGroup ( IPAddress multicastAddr, IPAddress localAddress ) : void
JoinMulticastGroup ( IPAddress multicastAddr, int timeToLive ) : void
JoinMulticastGroup ( int ifindex, IPAddress multicastAddr ) : void
ReceiveAsync ( ) : Task
SendAsync ( byte datagram, int bytes ) : Task
SendAsync ( byte datagram, int bytes, IPEndPoint endPoint ) : Task
SendAsync ( byte datagram, int bytes, string hostname, int port ) : Task
UdpClient ( ) : System.Diagnostics
UdpClient ( AddressFamily family ) : System.Diagnostics
UdpClient ( IPEndPoint localEP ) : System.Diagnostics
UdpClient ( int port ) : System.Diagnostics
UdpClient ( int port, AddressFamily family ) : System.Diagnostics

보호된 메소드들

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

비공개 메소드들

메소드 설명
CheckForBroadcast ( IPAddress ipAddress ) : void
CreateClientSocket ( ) : void
FreeResources ( ) : void
IsBroadcast ( IPAddress address ) : bool

메소드 상세

AllowNatTraversal() 공개 메소드

public AllowNatTraversal ( bool allowed ) : void
allowed bool
리턴 void

BeginReceive() 공개 메소드

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
리턴 IAsyncResult

BeginSend() 공개 메소드

public BeginSend ( byte datagram, int bytes, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
requestCallback AsyncCallback
state object
리턴 IAsyncResult

BeginSend() 공개 메소드

public BeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
endPoint IPEndPoint
requestCallback AsyncCallback
state object
리턴 IAsyncResult

BeginSend() 공개 메소드

public BeginSend ( byte datagram, int bytes, string hostname, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
hostname string
port int
requestCallback AsyncCallback
state object
리턴 IAsyncResult

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

DropMulticastGroup() 공개 메소드

public DropMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr IPAddress
리턴 void

DropMulticastGroup() 공개 메소드

public DropMulticastGroup ( IPAddress multicastAddr, int ifindex ) : void
multicastAddr IPAddress
ifindex int
리턴 void

EndReceive() 공개 메소드

public EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
asyncResult IAsyncResult
remoteEP IPEndPoint
리턴 byte[]

EndSend() 공개 메소드

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
리턴 int

JoinMulticastGroup() 공개 메소드

public JoinMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr IPAddress
리턴 void

JoinMulticastGroup() 공개 메소드

public JoinMulticastGroup ( IPAddress multicastAddr, IPAddress localAddress ) : void
multicastAddr IPAddress
localAddress IPAddress
리턴 void

JoinMulticastGroup() 공개 메소드

public JoinMulticastGroup ( IPAddress multicastAddr, int timeToLive ) : void
multicastAddr IPAddress
timeToLive int
리턴 void

JoinMulticastGroup() 공개 메소드

public JoinMulticastGroup ( int ifindex, IPAddress multicastAddr ) : void
ifindex int
multicastAddr IPAddress
리턴 void

ReceiveAsync() 공개 메소드

public ReceiveAsync ( ) : Task
리턴 Task

SendAsync() 공개 메소드

public SendAsync ( byte datagram, int bytes ) : Task
datagram byte
bytes int
리턴 Task

SendAsync() 공개 메소드

public SendAsync ( byte datagram, int bytes, IPEndPoint endPoint ) : Task
datagram byte
bytes int
endPoint IPEndPoint
리턴 Task

SendAsync() 공개 메소드

public SendAsync ( byte datagram, int bytes, string hostname, int port ) : Task
datagram byte
bytes int
hostname string
port int
리턴 Task

UdpClient() 공개 메소드

public UdpClient ( ) : System.Diagnostics
리턴 System.Diagnostics

UdpClient() 공개 메소드

public UdpClient ( AddressFamily family ) : System.Diagnostics
family AddressFamily
리턴 System.Diagnostics

UdpClient() 공개 메소드

public UdpClient ( IPEndPoint localEP ) : System.Diagnostics
localEP IPEndPoint
리턴 System.Diagnostics

UdpClient() 공개 메소드

public UdpClient ( int port ) : System.Diagnostics
port int
리턴 System.Diagnostics

UdpClient() 공개 메소드

public UdpClient ( int port, AddressFamily family ) : System.Diagnostics
port int
family AddressFamily
리턴 System.Diagnostics