Discuss this help topic in MsgConnect Forum

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



UDPTransport.TransportMode

UDPTransport     See also    


Defines the operation mode for the transport.

Declaration

[C++]
    void setTransportMode(MCInetTransportMode Value);
    MCInetTransportMode getTransportMode(void);

[Pascal]
    property TransportMode : MCInetTransportMode;

[VB6]
    Property TransportMode As MCXSocketTransportMode

[ActiveX]
    HRESULT _stdcall TransportMode([in] MCXInetTransportMode Value );
    HRESULT _stdcall TransportMode([out, retval] MCXInetTransportMode * Value );

[C#]
    public MCInetTransportMode TransportMode;

[VB.NET]
    Public Property TransportMode As MCInetTransportMode

[Java]
    public void setTransportMode(byte mode);
    public byte getTransportMode();

[Java ME]
    public void setTransportMode(byte mode);
    public byte getTransportMode();

[DLL]
    void __stdcall MCUDPTransportSetTransportMode(HMCUDPTransport h, char value);
    char __stdcall MCUDPTransportGetTransportMode(HMCUDPTransport h);

Values:

MCInetTransportMode
    stmP2P = 0;
    stmServer = 1;
    stmClient = 2;

Parameters

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

Description

    Use TransportMode to define the operation mode for the transport. The transport can act as a client, server or in peer-to-peer mode.
    When acting as a client UDPTransport doesn't accept incoming messages from remote hosts (and replies to it's own messages sent to other hosts as well) and can only send messages to the remote host.
    Server doesn't send messages (and replies to incoming messages) but accepts messages from remote clients.
    Peer-to-peer is the default mode and it allows both sending messages to remote hosts and accepting incoming messages.

Discuss this help topic in MsgConnect Forum