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(IPCInetTransportMode Value);
    IPCInetTransportMode getTransportMode(void);

[Pascal]
    property TransportMode : IPCInetTransportMode;

[VB6]
    Property TransportMode As IPCXSocketTransportMode

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

[C#]
    public IPCInetTransportMode TransportMode;

[VB.NET]
    Public Property TransportMode As IPCInetTransportMode

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

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

[DLL]
    void __stdcall IPCUDPTransportSetTransportMode(HIPCUDPTransport h, char value);
    char __stdcall IPCUDPTransportGetTransportMode(HIPCUDPTransport h);

Values:

IPCInetTransportMode
    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 its 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.