User Tools

Site Tools


Sidebar

Welcome to DIDO WIKI

dido:public:s_cli:05_contents:01_prt:04_dll:port

This is an old revision of the document!


4.1 DEFINE PORT Command

Purpose

Return to Top

The DEFINE PORT Command is to define a named Port Number for use within a DIDO Node in the Node Network. The Port can be used by Distributed Application (ĐApp or DApp) which run on the Node.

Syntax

Return to Top

DEFINE PORT  <PortName> AS
  PROTOCOL   = <ProtocolName>
  NUMBER     = <PortNumber>;

Where

  • PortName ::= textual name associated with the port.
  • ProtocolName ::= protocol associated with the port.
  • PortNumber ::= integer value associated with the port. A port number uniquely identifies a network-based application on a computer. Each application/program is allocated a 16-bit integer port number. This number is assigned automatically by the OS, manually by the user or is set as a default for some popular applications.

Examples

Return to Top

| Examples of Defining Port Numbers in DidoLL
    DEFINE PORT http AS
      protocol  = TCP
      port      = 8080;
 
    DEFINE PORT Discovry AS
      protocol  = UDP
      port      = 30301;
dido/public/s_cli/05_contents/01_prt/04_dll/port.1623723737.txt.gz · Last modified: 2021/06/14 22:22 by nick
Translations of this page: