Discuss this help topic in SecureBlackbox Forum

TElSocket.SocksAccept

TElSocket     


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


Accepts an inoming SOCK connection.

Declaration

[C#]
    void SocksAccept(int Timeout, TSBSocksAuthMethodChooseEvent OnAuthMethodChoose, TSBSocksAuthPasswordEvent OnAuthPassword, TSBSocksConnectEvent OnConnect, bool CloseConnectionOnError, bool ResolveAddress);

[VB.NET]
    Sub SocksAccept(ByVal Timeout As Integer, ByVal OnAuthMethodChoose As TSBSocksAuthMethodChooseEvent, ByVal OnAuthPassword As TSBSocksAuthPasswordEvent, ByVal OnConnect As TSBSocksConnectEvent, ByVal CloseConnectionOnError As Boolean, ByVal ResolveAddress As Boolean)

[Pascal]
    procedure SocksAccept(Timeout : Integer; OnAuthMethodChoose : TSBSocksAuthMethodChooseEvent; OnAuthPassword : TSBSocksAuthPasswordEvent; OnConnect : TSBSocksConnectEvent; CloseConnectionOnError : Boolean; ResolveAddress : Boolean);

[C++]
    void SocksAccept(int32_t Timeout, TSBSocksAuthMethodChooseEvent pMethodOnAuthMethodChoose, void * pDataOnAuthMethodChoose, TSBSocksAuthPasswordEvent pMethodOnAuthPassword, void * pDataOnAuthPassword, TSBSocksConnectEvent pMethodOnConnect, void * pDataOnConnect, bool CloseConnectionOnError, bool ResolveAddress);

[PHP]
    void SocksAccept(integer $Timeout, TSBSocksAuthMethodChooseEvent|callable|NULL $OnAuthMethodChoose, TSBSocksAuthPasswordEvent|callable|NULL $OnAuthPassword, TSBSocksConnectEvent|callable|NULL $OnConnect, bool $CloseConnectionOnError, bool $ResolveAddress)

[Java]
    void socksAccept(int Timeout, TSBSocksAuthMethodChooseEvent CloseConnectionOnError, TSBSocksAuthPasswordEvent ResolveAddress, TSBSocksConnectEvent arg3, boolean arg4, boolean arg5);

Parameters

  • CloseConnectionOnError - specifies whether to close the connection on error.
  • ResolveAddress - specifies whether to resolve the destination address.
  • OnAuthMethodChoose - the callback that is risen when the auth method has to be chosen.
  • OnAuthPassword - the callback that is risen to request the auth password.
  • OnConnect - the callback that is risen when the incoming connection is accepted.
  • Timeout - specifies the maximum period of inactivity (in milliseconds) after which operation is cancelled.
  • pMethodOnAuthMethodChoose - the callback that is risen when the auth method has to be chosen.
  • pDataOnAuthMethodChoose - contains the data of pMethodOnAuthMethodChoose.
  • pMethodOnAuthPassword - the callback that is risen to request the auth password.
  • pDataOnAuthPassword - contains the data of pDataOnAuthPassword.
  • pMethodOnConnect - the callback that is risen when the incoming connection is accepted.
  • pDataOnConnect - contains the data of pDataOnConnect.

Description

    This method is used by the server socket to accept SOCKS connection.

Discuss this help topic in SecureBlackbox Forum