User`s guide

D: ADCCP NRM Detailed Command and Response Headers
DC 900-1317J 131
D.3 attach-packet
Packet Description
This packet is used to attach an application to the protocol and retrieve the protocol’s
session ID.
Packet Header
Freeway (DLI api only):
usFWPacketType = FW_DATA
usFWCommand = FW_ICP_WRITE
usFWStatus = 0
ICP:
usICPClientID = 0
usICPServerID = 0
[usLength = 16 (used for non DLI api only)]
usICPCommand = DLI_ICP_CMD_ATTACH
iICPStatus = 0 - for Big Endian Clients or
= 0x4000 - for Little Endian Clients
- returned with DLI status
usICPParams[0] = node number
usICPParams[1] = 0
usICPParams[2] = 0
Protocol:
usProtCommand = DLI_ICP_CMD_ATTACH
iProtModifier = 0
- returned with DLI status
usProtLinkID = port number
usProtCircuitID = 0
usProtSessionID = 0
- returned with protocol session number
usProtSequence = 0
usProtXparms[0] = 2 2= SDLC(ADCCP NRM)
usProtXparms[1] = 0
Note
The Freeway header is used only with DLI (it is not applicable for
DLITE), and the
usLength field of the ICP header is used only with-
out DLI.
Data
None
Packet Exchanges
usProtCommand sent usProtCommand received
------------------ ----------------------
DLI_ICP_CMD_ATTACH DLI_ICP_CMD_ATTACH