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


UDPTransport     See also    

Defines the operation mode for the transport.


    void setTransportMode(IPCInetTransportMode Value);
    IPCInetTransportMode getTransportMode(void);

    property TransportMode : IPCInetTransportMode;

    Property TransportMode As IPCXSocketTransportMode

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

    public IPCInetTransportMode TransportMode;

    Public Property TransportMode As IPCInetTransportMode

    public void setTransportMode(byte mode);
    public byte getTransportMode();

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

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


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


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


    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.