B.3. TSI Configuration File (swtcfg)

Figure B-8 is an example TSI configuration file (swtcfg) for the Message Switch. The swtcfg file is used in the procedures described in Chapter 2.

Figure B-8. TSI Configuration File for Message Switch

    //-----------------------------------------------------------------------------
    //
    // swtcfg
    //
    // Define a main section and a section for a shared memory connection.  The
    // defaults of most of the parameters are used, so they do not show up in this
    // file.  See the TSI Reference Guide for a description of all TSI
    // configuration parameters.
    //
    // -------------------------------------------------------------------------
    // "main" section.  When present, the main section must be the first section
    // defined in the DLI configuration file.
    // -------------------------------------------------------------------------
    
    main
    { AsyncIO    = "Yes";           // SRAs must use asynchronous I/O.
      MaxBuffers = 450;             // Default of 1024 uses too much RAM.
      MaxBufSize = 1300;            // 1224 data bytes plus 76 bytes DLI overhead.
    }
    
    
    // -------------------------------------------------------------------
    // Definition for a shared-memory transport interface with the msgmux.
    // -------------------------------------------------------------------
    
    Conn0
    { Transport   = "shared-memory";  // Shared memory transport mechanism.
      AsyncIO     = "Yes";            // SRAs must use asynchronous I/O.
      Server      = "freeway_0";      // Task name of peer server task.  Matches
                                      //    ServerName parameter in muxcfg.sra.
      ShmPeerName = "Server2";        // Name of peer connection definition in
                                      //    muxcfg.sra.
    }