4. The Primitives
The protocol assumes that the TCP [RFC793] offers the following service primitives:
Events
connected - open succeeded (either ACTIVE or PASSIVE)
connect fails - ACTIVE open failed
data ready - data can be read from the connection
errored - the connection has errored and is now closed
closed - an orderly disconnection has started
Actions
listen on port - PASSIVE open on the given port
open port - ACTIVE open to the given port
read data - data is read from the connection
send data - data is sent on the connection
close - the connection is closed (pending data is
sent)
This memo describes how to use these services to emulate the following service primitives, which are required by [ISO8073]:
Events
N-CONNECT.INDICATION
- An NS-user (responder) is notified that
connection establishment is in progress
N-CONNECT.CONFIRMATION
- An NS-user (responder) is notified that
the connection has been established
N-DATA.INDICATION
- An NS-user is notified that data can be
read from the connection
N-DISCONNECT.INDICATION
- An NS-user is notified that the connection
is closed
Actions
N-CONNECT.REQUEST
- An NS-user (initiator) indicates that it
wants to establish a connection
N-CONNECT.RESPONSE
- An NS-user (responder) indicates that it
will honor the request
N-DATA.REQUEST - An NS-user sends data
N-DISCONNECT.REQUEST
- An NS-user indicates that the connection
is to be closed
The protocol offers the following service primitives, as defined in [ISO8072], to the TS-user:
Events
T-CONNECT.INDICATION
- a TS-user (responder) is notified that
connection establishment is in progress
T-CONNECT.CONFIRMATION
- a TS-user (initiator) is notified that the
connection has been established
T-DATA.INDICATION
- a TS-user is notified that data can be read
from the connection
T-EXPEDITED DATA.INDICATION
- a TS-user is notified that "expedited" data
can be read from the connection
T-DISCONNECT.INDICATION
- a TS-user is notified that the connection
is closed
Actions
T-CONNECT.REQUEST
- a TS-user (initiator) indicates that it
wants to establish a connection
T-CONNECT.RESPONSE
- a TS-user (responder) indicates that it
will honor the request
T-DATA.REQUEST - a TS-user sends data
T-EXPEDITED DATA.REQUEST
- a TS-user sends "expedited" data
T-DISCONNECT.REQUEST
- a TS-user indicates that the connection
is to be closed