Discuss this help topic in SecureBlackbox Forum


TElSocket     See also     

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

Accepts an incoming connection.


    int Accept(int Timeout);
    void Accept(int Timeout, ref TElSocket Socket);

    Function Accept(ByVal Timeout As Integer) As Integer
    Sub Accept(ByVal Timeout As Integer, ByRef Socket As TElSocket)

    function Accept(Timeout : integer) : integer; overload;
    procedure Accept(Timeout : integer; var Socket : TElSocket); overload;

    int32_t Accept(int32_t Timeout);
    void Accept(int32_t Timeout, TElSocket &Socket);

    integer Accept(integer $Timeout)
    void Accept(integer $Timeout, TElSocket &$Socket)


  • Timeout - Specifies maximum period of inactivity (in milliseconds) after which operation is cancelled.
  • Socket - A socket object which handles an incoming connection

Return value

    Returns 0 if the operation was finished successfully, and socket error code otherwise.
    In .NET, if an exception has been raised, -1 may be returned.


    This method takes the first connection request from the queue of pending requests and creates a new Socket to handle it.

See also:     Bind     Listen     AsyncConnect    

Discuss this help topic in SecureBlackbox Forum