Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



InetTransport.ConnectionTimeout

InetTransport     See also    


Specifies the time to wait for TCP connection to be established.

Declaration

[C++]
    void setConnectionTimeout(unsigned long Value);
    unsigned long getConnectionTimeout();

[Pascal]
    property ConnectionTimeout : cardinal;

[VB6]
    Property AttempsInterval As Long

[ActiveX]
    HRESULT _stdcall AttempsInterval([in] unsigned long Value );
    HRESULT _stdcall AttempsInterval([out, retval] unsigned long * Value );

[C#]
    public long ConnectionTimeout;

[VB.NET]
    Public Property ConnectionTimeout As Integer

[Java]
    public void setConnectionTimeout(long value);
    public long getConnectionTimeout();

[Java ME]
    public void setConnectionTimeout(long value);
    public long getConnectionTimeout();

[DLL]
    void __stdcall MCInetTransportSetConnectionTimeout(HMCInetTransport h, unsigned long value);
    unsigned long __stdcall MCInetTransportGetConnectionTimeout(HMCInetTransport h);

Parameters

  • h - handle to the object that was returned by Create method

Description

    This property specifies the time to wait until connection is established. If timeout elapses without successful connection, the attempt fails. The value for ConnectionTimeout is specified in milliseconds.

    Value of 0 (zero) means, that no application-defined timeout is used, and connection attempt will fail when underlying TCP stack decides that timeout has elapsed.

    Note: This property is only active when InetTransport is in peer-to-peer and client transport modes.

Discuss this help topic in MsgConnect Forum