Socket-template-list Container

From TrainzOnline
Revision as of 10:00, 12 December 2017 by Pw3r (Talk | contribs)

Jump to: navigation, search

A container type tag for defining socket templates for use within TNISocket within Trainz Native Interface.

Contents

Supported Tags

Each subcontainer supports the following tags. Each tag is shown here with its default value.

 network                                 ""
 domain                                  ""
 ip                                      ""
 port                                    0

network

Type: list
Desc:

domain

Type: string
Desc:

ip

Type: string
Desc:

port

Type: integer
Desc:

Example config.txt

Sample config.txt file for a TNI library asset which connects to another process on the local machine:

 kind                                    "library"
 kuid                                    <KUID:0:0>
 trainz-build                            4.6
 tni-library-name                        "TNISocketTest"
 tni-socket-templates
 {
   0
   {
     network                             "local"
     port                                7357
   }
 }


Categories

Personal tools