Socket-template-list Container: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
No edit summary
No edit summary
Line 12: Line 12:
====network====
====network====
:Type: list
:Type: list
:Desc:  
:Desc: Specifies "local", "lan" or "wan" connection
====domain====
====domain====
:Type: string
:Type: string
:Desc:  
:Desc: Restricts connections to a specific domain
====ip====
====ip====
:Type: string
:Type: string
:Desc:  
:Desc: Restricts connections to a specific IP address
====port====
====port====
:Type: integer
:Type: integer
:Desc:  
:Desc: Restricts connections to a specific port number (compulsory)


==Example config.txt==
==Example config.txt==

Revision as of 00:01, 12 December 2017

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

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: Specifies "local", "lan" or "wan" connection

domain

Type: string
Desc: Restricts connections to a specific domain

ip

Type: string
Desc: Restricts connections to a specific IP address

port

Type: integer
Desc: Restricts connections to a specific port number (compulsory)

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