PowerTCP Mail for .NET
TcpAsyncCallback Delegate




The TcpBase object that initiated the asynchronous operation.
The Data object containing received/sent data. Null for connect operations or 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
Public Delegate Sub TcpAsyncCallback( _
   ByVal tcp As TcpBase, _
   ByVal data As Data, _
   ByVal exception As Exception, _
   ByVal state As Object _
) 
Dim instance As New TcpAsyncCallback(AddressOf HandlerMethod)
public delegate void TcpAsyncCallback( 
   TcpBase tcp,
   Data data,
   Exception exception,
   object state
)
public: __gc __delegate void TcpAsyncCallback( 
   TcpBase* tcp,
   Data* data,
   Exception* exception,
   Object* state
)
public delegate void TcpAsyncCallback( 
   TcpBase^ tcp,
   Data^ data,
   Exception^ exception,
   Object^ state
)

Parameters

tcp
The TcpBase object that initiated the asynchronous operation.
data
The Data object containing received/sent data. Null for connect operations or 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

TcpAsyncCallback Members
Dart.Mail Namespace


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