C# Class System.Net.Sockets.UdpClient

Inheritance: IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CheckForBroadcast ( IPAddress ipAddress ) : void
CreateClientSocket ( ) : void
FreeResources ( ) : void
IsBroadcast ( IPAddress address ) : bool

Method Details

AllowNatTraversal() public méthode

public AllowNatTraversal ( bool allowed ) : void
allowed bool
Résultat void

BeginReceive() public méthode

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
Résultat IAsyncResult

BeginSend() public méthode

public BeginSend ( byte datagram, int bytes, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
requestCallback AsyncCallback
state object
Résultat IAsyncResult

BeginSend() public méthode

public BeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
endPoint IPEndPoint
requestCallback AsyncCallback
state object
Résultat IAsyncResult

BeginSend() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DropMulticastGroup() public méthode

public DropMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr IPAddress
Résultat void

DropMulticastGroup() public méthode

public DropMulticastGroup ( IPAddress multicastAddr, int ifindex ) : void
multicastAddr IPAddress
ifindex int
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
asyncResult IAsyncResult
remoteEP IPEndPoint
Résultat byte[]

EndSend() public méthode

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

JoinMulticastGroup() public méthode

public JoinMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr IPAddress
Résultat void

JoinMulticastGroup() public méthode

public JoinMulticastGroup ( IPAddress multicastAddr, IPAddress localAddress ) : void
multicastAddr IPAddress
localAddress IPAddress
Résultat void

JoinMulticastGroup() public méthode

public JoinMulticastGroup ( IPAddress multicastAddr, int timeToLive ) : void
multicastAddr IPAddress
timeToLive int
Résultat void

JoinMulticastGroup() public méthode

public JoinMulticastGroup ( int ifindex, IPAddress multicastAddr ) : void
ifindex int
multicastAddr IPAddress
Résultat void

ReceiveAsync() public méthode

public ReceiveAsync ( ) : Task
Résultat Task

SendAsync() public méthode

public SendAsync ( byte datagram, int bytes ) : Task
datagram byte
bytes int
Résultat Task

SendAsync() public méthode

public SendAsync ( byte datagram, int bytes, IPEndPoint endPoint ) : Task
datagram byte
bytes int
endPoint IPEndPoint
Résultat Task

SendAsync() public méthode

public SendAsync ( byte datagram, int bytes, string hostname, int port ) : Task
datagram byte
bytes int
hostname string
port int
Résultat Task

UdpClient() public méthode

public UdpClient ( ) : System.Diagnostics
Résultat System.Diagnostics

UdpClient() public méthode

public UdpClient ( AddressFamily family ) : System.Diagnostics
family AddressFamily
Résultat System.Diagnostics

UdpClient() public méthode

public UdpClient ( IPEndPoint localEP ) : System.Diagnostics
localEP IPEndPoint
Résultat System.Diagnostics

UdpClient() public méthode

public UdpClient ( int port ) : System.Diagnostics
port int
Résultat System.Diagnostics

UdpClient() public méthode

public UdpClient ( int port, AddressFamily family ) : System.Diagnostics
port int
family AddressFamily
Résultat System.Diagnostics