OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

5.2 Connection operations

This section explains operations related to connections.

Organization of this section
(1) Display of connection status
(2) Connection establishment and release
(3) Exchange of connections
(4) Start and stop of acceptance of server-type connection establishment requests

(1) Display of connection status

A connection status can be displayed by the mcftlscn command. If the -d option is specified in the mcftlscn command, information about the logical terminal corresponding to a connection is also displayed. The displayed information includes the connection ID, type of protocol, connection status, etc.

You can also acquire the connection status by issuing a function from a UAP. For details, see the manual OpenTP1 Programming Guide.

(2) Connection establishment and release

If a connection error occurs or the connection is shut down by entry of the mcftdctcn command, the mcftactcn command can be used to reestablish the connection.

The mcftdctcn releases a connection established by the mcftactcn command. If connection cannot be released normally, specifying the -f option in the mcftdctcn command releases the connection forcibly. When a connection is released forcibly, a message being received is discarded and is not cataloged into the input queue. During message send, send processing is cancelled, and the message being sent is retained in the output queue.

You can also establish and release a connection by issuing a function from a UAP. For details, see the manual OpenTP1 Programming Guide.

(3) Exchange of connections

If the remote system terminates abnormally or a line error occurs, the connection can be exchanged by the mcftchcn command to continue message exchange. However, if an error occurs with the connection of the destination, messages cannot be sent or received by executing the mcftchcn command.

The appropriate logical terminal must be shut down by the mcftdctle command. Then the connections of both the source and destination must be released by the mcftdctcn command. This must be followed by execution of the mcftchcn command, which exchanges the correspondence between the connection and the logical terminal and enables messages to be sent or received at the connection of the destination.

The mcftchcn command must be executed without remaining messages to be sent. If the command is executed with messages remaining in the output queue, they are all sent to the connection of the destination. If the command is executed after an inquiry-response type UAP have received an inquiry message and before it sends a response message, the response message is sent to the connection of the destination.

To update the status of the new connection, the mcftactcn command must be executed to establish the connection and then the mcftlscn command executed to display the connection status for updating.

Before executing the mcftchcn command, TP1/NET/High Availability must be installed.

(4) Start and stop of acceptance of server-type connection establishment requests

The mcftonln command starts acceptance of server-type connection establishment requests, and the mcftofln command stops acceptance of server-type connection establishment requests. You can also use the mcftlsln command to display the status of establishment request acceptance.

For details, see the applicable OpenTP1 Protocol manual.