Discuss this help topic in MsgConnect Forum

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



UDPTransport.MessengerPort

UDPTransport     See also    


This read-only property 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 getMessengerPortBound();

[Java ME]
    not applicable;

[DLL]
    unsigned short __stdcall MCUDPTransportGetMessengerPortBound(HMCUDPTransport 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.

Discuss this help topic in MsgConnect Forum