EldoS
MsgConnect home / Documentation / UDPTransport.TransportMode property
Navigation
Web site
Support
Table Of Contents

Filter: C++  Pascal  ActiveX  C#  VB.NET  Java SE  Java ME  Palm  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] MIDP 2.0 only
    public void setTransportMode(byte mode);
    public byte getTransportMode();

[Palm]
    void setTransportMode(MCInetTransportMode Value);
    MCInetTransportMode getTransportMode(void);

[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.

 
Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2005, EldoS Corporation