Establish Connection (CE) instruction
|Top Previous Next|
Description (see instruction description format info here)
xxx.xxx.xxx.xxx is the IP-address of the destination host;
ppppp is the port number on the destination in the 0-65535 range
Establish Connection instruction makes the DS establish an outgoing connection with the network host. Which transport protocol is used (UDP or TCP) is defined by the current Transport Protocol (TP) [setting/ parameter].
This command has two syntax options: with and without destination IP-address and destination port number fields. Both fields must be either supplied or not supplied, it is not possible to have only one of the fields in the command body.
When destination IP-address and destination port number fields are supplied they are interpreted exactly as data fields in Destination IP-address (DI) parameter and Destination Port Number (DP) parameter i.e. override the Destination IP-address (DI) settingand Destination Port Number (DP) setting. This means that sending PCExxx.xxx.xxx.xxx/ppppp command is equivalent to sending PDIxxx.xxx.xxx.xxx, then PDPppppp, followed by the PCE command.
When destination fields are not provided the DS will use the following destination IP-address and port number to connect to:
OK (A) reply code is returned if command is accepted. This does not mean that the data connection has been established already, only that the DS has accepted the command. Actual connection status can be verified at any time using the Echo (X) command (see c flag). Actual IP-address and port number of the destination host with which the DS has a data connection can be verified using the Status (U) command.
Error (C) reply code is returned if the data supplied in the command is invalid (or only one of the data fields is present). Rejected (R) reply code is returned if: