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


InetTransport     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 IPCInetTransportSetTransportMode(HIPCInetTransport h, char value);
    char __stdcall IPCInetTransportGetTransportMode(HIPCInetTransport 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 InetTransport doesn't accept connections from remote hosts and can only connect to the remote host. This doesn't prevent the transport from receiving messages from the server via established connection. When there's a message to be delivered to some remote host, transport searches for existing connection with the remote side and if such connection is not found, new connection is established.
    Server doesn't initiate own connections but accepts connections from remote clients. When the connection is present, it is used to transfer pending messages addressed for the client. If there is no connection with the message recipient host, such message is kept in the outgoing queue and waiting for the client to connect.
    Peer-to-peer is the default mode and it allows both establishing connections to remote hosts and accepting incoming connections. When the message is put to the outgoing queue, the transport behaves like in client mode -- looks for existing connection and if it finds nothing, new connection is established.