The cor protocol - The layer 3 command interpreter
The command interpreter allows the routing daemon to do network discovery and establishing end-to-end connections when requested by programs. Basically the routing daemon will first create a raw socket which is connected to the command interpreter of the local machine. It can than execute these commands:
- list services (parameters: none): to be documented
- list neighbors (parameters: none): Returns a list of neighbors with their address and the metric of the route
- connect to neighbor (parameters: neighbor address): Establishes a connection to the neighbor
The command interpreter will be closed and a command interpreter on the neighbor will be opened. Data sent from the routing daemon to the raw socket will be sent to the command interpreter of the neighbor. The list services/neighbors commend will return the view of the neighbor. Subsequent "connect to neighbor" can be issued to connect to distant nodes. The routing daemon can discover the whole network and establish connections to any node by sending these commands.
- connect to port (parameters: port): Establishes a connection to an open port
The command interpreter will be closed and subsequent data will be passed to the layer 4.