C# Class NLog.Internal.NetworkSenders.UdpNetworkSender

Sends messages over the network as UDP datagrams.
Inheritance: NetworkSender
Exibir arquivo Open project: NLog/NLog Class Usage Examples

Private Properties

Property Type Description
CloseSocket void
CreateSocket ISocket
DoSend void
SocketOperationCompleted void

Public Methods

Method Description
CheckSocket ( ) : void
UdpNetworkSender ( string url, AddressFamily addressFamily ) : System

Initializes a new instance of the UdpNetworkSender class.

Protected Methods

Method Description
DoClose ( AsyncContinuation continuation ) : void

Closes the socket.

DoInitialize ( ) : void

Performs sender-specific initialization.

Private Methods

Method Description
CloseSocket ( AsyncContinuation continuation ) : void
CreateSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : ISocket
DoSend ( byte bytes, int offset, int length, AsyncContinuation asyncContinuation ) : void
SocketOperationCompleted ( object sender, SocketAsyncEventArgs e ) : void

Method Details

CheckSocket() public method

public CheckSocket ( ) : void
return void

DoClose() protected method

Closes the socket.
protected DoClose ( AsyncContinuation continuation ) : void
continuation AsyncContinuation The continuation.
return void

DoInitialize() protected method

Performs sender-specific initialization.
protected DoInitialize ( ) : void
return void

UdpNetworkSender() public method

Initializes a new instance of the UdpNetworkSender class.
public UdpNetworkSender ( string url, AddressFamily addressFamily ) : System
url string URL. Must start with udp://.
addressFamily AddressFamily The address family.
return System