The diagram below summarizes the order that the DLPI message primitives are used to establish a connection and transfer data in connection oriented mode when LLC2 is used:
The file /opt/SUNWconn/x25/samples.dlpi/llc2.c contains an example.
The diagram below summarizes the order that the DLPI message primitives are used to establish a connection and transfer data in connection oriented mode when LAPB is used:
When using LAPB, the connect phase is handled automatically by the network. The LAPB protocol automatically establishes the connection as soon as the cable has been plugged in. The connect indicator CONNECT_IND will automatically notify the user when the connection has been established.
The file /opt/SUNWconn/x25/samples.dlpi/lapb.c contains an example.