Discuss this help topic in MsgConnect Forum

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



InetTransport.MessengerPortBound

InetTransport     See also    


Specifies the port to which the socket was actually bound.

Declaration

[C++]
    unsigned getMessengerPortBound(void);

[Pascal]
    property MessengerPortBound : word;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[C#]
    public int MessengerPortBound;

[VB.NET]
    Public Property MessengerPortBound As Integer

[Java]
    public int getMessengerPort();

[Java ME]
    not applicable;

[DLL]
    unsigned short __stdcall MCInetTransportGetMessengerPortBound(HMCInetTransport h);

Parameters

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

Description

    Specifies the port to which the socket was actually bound. Use this property to get the actual port value, to which the socket was bound, in case when MessengerPort property was set to 0.

    Note that due to asynchronous nature of the operation, the port is bound not when you set Active property of the transport to true, but a bit later. So you need to check the value of this property in a loop until it returns a non-zero value.

See also:     MessengerAddress     MessengerPort     TransportMode    

Discuss this help topic in MsgConnect Forum