Discuss this help topic in MsgConnect Forum

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



InetTransport.MessengerPort

InetTransport     See also    


Specifies the port to which the socket will be bound.

Declaration

[C++]
    void setMessengerPort(unsigned Value);
    unsigned getMessengerPort(void);

[Pascal]
    property MessengerPort : word;

[VB6]
    Property MessengerPort As Long

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

[C#]
    public int MessengerPort;

[VB.NET]
    Public Property MessengerPort As Integer

[Java]
    public void setMessengerPort(int value);
    public int getMessengerPort();

[Java ME]
    public void setMessengerPort(int value);
    public int getMessengerPort();

[DLL]
    void __stdcall MCInetTransportSetMessengerPort(HMCInetTransport h, unsigned short value);
    unsigned short __stdcall MCInetTransportGetMessengerPort(HMCInetTransport h);

Parameters

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

Description

    Specifies the port to which the socket will be bound. Remote clients will connect to this port.

    You can set the value to 0, in this case the port will be chosen by the operating system. To get the real port value, use MessengerPortBound property.

Discuss this help topic in MsgConnect Forum