PowerTCP Sockets for .NET
UdpAsyncCallback Delegate




The UdpBase object that initiated the asynchronous operation.
The Datagram object containing received/sent data. Null if the socket is closed.
Populated if the operation threw an exception, otherwise null.
State object passed into the asynchronous call.
References the method to invoke on an IO completion thread when the corresponding asynchronous operation completes.
Syntax
'Declaration
 
Public Delegate Sub UdpAsyncCallback( _
   ByVal udp As UdpBase, _
   ByVal datagram As Datagram, _
   ByVal exception As Exception, _
   ByVal state As Object _
) 
'Usage
 
Dim instance As New UdpAsyncCallback(AddressOf HandlerMethod)
public delegate void UdpAsyncCallback( 
   UdpBase udp,
   Datagram datagram,
   Exception exception,
   object state
)
public: __gc __delegate void UdpAsyncCallback( 
   UdpBase* udp,
   Datagram* datagram,
   Exception* exception,
   Object* state
)
public delegate void UdpAsyncCallback( 
   UdpBase^ udp,
   Datagram^ datagram,
   Exception^ exception,
   Object^ state
)

Parameters

udp
The UdpBase object that initiated the asynchronous operation.
datagram
The Datagram object containing received/sent data. Null if the socket is closed.
exception
Populated if the operation threw an exception, otherwise null.
state
State object passed into the asynchronous call.
See Also

Reference

UdpAsyncCallback Members
Dart.Sockets Namespace


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic