Discuss this help topic in MsgConnect Forum

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



InetTransport.AttemptsToConnect

InetTransport     See also    


Defines how much time the transport should try to connect to remote host and send the message.

Declaration

[C++]
    void setAttemptsToConnect(unsigned long Value);
    unsigned long getAttemptsToConnect(void);

[Pascal]
    property AttemptsToConnect : cardinal;

[VB6]
    Property AttemptsToConnect As Long

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

[C#]
    public int AttemptsToConnect;

[VB.NET]
    Public Property AttemptsToConnect As Integer

[Java]
    public void setAttemptsToConnect(long value);
    public long getAttemptsToConnect();

[Java ME]
    public void setAttemptsToConnect(int attemptsToConnect);
    public int getAttemptsToConnect();

[DLL]
    void __stdcall MCInetTransportSetAttemptsToConnect(HMCInetTransport h, unsigned long value);
    unsigned long __stdcall MCInetTransportGetAttemptsToConnect(HMCInetTransport h);

Parameters

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

Description

    This property defines how much times the transport will try to re-connect if there is an error in connecting to the remote host or when transferring the data. Use 0 to try until the message is delivered or the transport is stopped (in other words, 0 = unlimited). The interval between attempts is defined by AttemptsInterval property.
    It makes sense to set the value to 3 or more attempts. This allows recovery of the broken connection without marking the message being delivered as failed.

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

Discuss this help topic in MsgConnect Forum