Discuss this help topic in MsgConnect Forum

SocketTransport class

Properties     Methods     See also    


SocketTransport is used to send messages across network using plain TCP packets.

Description

    SocketTransport is a descendant of InetTransport that transfers messages between computers using plain TCP packets. SocketTransport can act in client, server or peer-to-peer modes (use TransportMode property to specify the mode). SocketTransport automatically manages connections to remote hosts and supports Transformer classes.
    SocketTransport is based on thread-per-connection scheme, so that each connection is handled in the separate thread. Threads can be reused by using a thread pool (set it's size with ThreadPoolSize property).

Message address for SocketTransport looks like
<Name>:<MessengerName>|<QueueName>
where

  • Name is the value of Name property of the transport. Default name for this transport is "Socket";
  • MessengerName contains the address and port of the recipient transport as defined in recipient's MessengerAddress and MessengerPort properties;
  • QueueName is the name of the queue

    For information about proxy support, see description of Proxy support in SocketTransport and HTTPTransport

Properties

    Inherited from InetTransport

    Inherited from BaseTransport

Methods

    Inherited from InetTransport

    Inherited from BaseTransport

Events

    Inherited from InetTransport

Discuss this help topic in MsgConnect Forum