PowerTCP Emulation for .NET
ConnectAsync Method




Used to specify the local and remote endpoints, and proxy configuration.
A TcpAsyncCallback delegate referencing the method to invoke on an IO completion thread when the operation completes.
Object to pass into the callback method when the operation completes; can be null.
Connect to a server using the configuration specified by session.
Syntax
Public Sub ConnectAsync( _
   ByVal session As TcpSession, _
   ByVal callback As TcpAsyncCallback, _
   ByVal state As Object _
) 
Dim instance As TcpBase
Dim session As TcpSession
Dim callback As TcpAsyncCallback
Dim state As Object
 
instance.ConnectAsync(session, callback, state)
public void ConnectAsync( 
   TcpSession session,
   TcpAsyncCallback callback,
   object state
)
public: void ConnectAsync( 
   TcpSession* session,
   TcpAsyncCallback* callback,
   Object* state
) 
public:
void ConnectAsync( 
   TcpSession^ session,
   TcpAsyncCallback^ callback,
   Object^ state
) 

Parameters

session
Used to specify the local and remote endpoints, and proxy configuration.
callback
A TcpAsyncCallback delegate referencing the method to invoke on an IO completion thread when the operation completes.
state
Object to pass into the callback method when the operation completes; can be null.
See Also

Reference

TcpBase Class
TcpBase Members


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