Discuss this help topic in SecureBlackbox Forum

TElSocket.AsyncConnect

TElSocket     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


establishes direct connection to the remote server.

Declaration

[C#/Java]
    int AsyncConnect(int Timeout);

[VB.NET]
    Function AsyncConnect(ByVal Timeout As Integer) As Integer

[Pascal]
    function AsyncConnect(Timeout : integer) : integer;

[C++]
    int32_t AsyncConnect(int32_t Timeout);

[PHP]
    integer AsyncConnect(integer $Timeout)

Parameters

  • Timeout - connection timeout in milliseconds. The value set to -1 means infinite timeout, set to 0 means no waiting at all.

Return value

    Returns 0 if the connection was established, and socket error code otherwise.
    In .NET, if an exception has been rised, -1 may be returned.

Description

    Use this method to establish the direct connection to the remote server. Server name is specified by the Address property.

See also:     Connect     Address    

Discuss this help topic in SecureBlackbox Forum