====== 4.2 Port ====== [[dido:public:s_cli:05_contents:01_prt:04_dll:start| Return to DidoDLL]] ===== Purpose ===== [[dido:public:s_cli:05_contents:01_prt:04_dll:port| Return to Top]] The **DEFINE PORT** Command is to define a named [[dido:public:ra:xapend:xapend.a_glossary:p:port]] for use within a [[dido:public:ra:xapend:xapend.a_glossary:n:node | DIDO Node]] in the [[dido:public:ra:xapend:xapend.a_glossary:n:node_network]]. The Port can be used by [[dido:public:ra:xapend:xapend.a_glossary:d:dapp]] which run on the [[dido:public:ra:xapend:xapend.a_glossary:n:node|Node]]. ===== Syntax ===== [[dido:public:s_cli:05_contents:01_prt:04_dll:port| Return to Top]] DEFINE PORT AS PROTOCOL = NUMBER = ; ==== Where ==== * **PortName** ::= textual name associated with the port. * **ProtocolName** ::= protocol associated with the port. * **PortNumber** ::= [[dido:public:s_cli:05_contents:01_prt:04_dll:portnumbertype | PortNumberType]] is an integer value associated with the port. A port number uniquely identifies a network-based application on a computer. Each [[dido:public:ra:xapend:xapend.a_glossary:a:application|application/program]] is allocated a [[dido:public:ra:xapend:xapend.a_glossary:00-9:16bit]] integer port number. This number is assigned automatically by the [[dido:public:ra:xapend:xapend.a_glossary:o:os|OS]], manually by the user or is set as a default for some popular applications. ==== Examples ==== [[dido:public:s_cli:05_contents:01_prt:04_dll:port| Return to Top]] DEFINE PORT http AS protocol = TCP port = 8080; DEFINE PORT Discovry AS protocol = UDP port = 30301; /**=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- /* To add a discussion page to this page, comment out the line that says ~~DISCUSSION:off~~ */ ~~DISCUSSION:on|Outstanding Issues~~ ~~DISCUSSION:off~~