LAPOpenProtocol
ABByte theLAPType; protocol type specification. Ptr protoPtr; pointer to a protocol handler recommended that you use the preferred call, PAttachPH instead. the node's protocol table.
theLAPType specifies the ALAP protocol to be added.
protoPtr is a pointer to a protocol handler.
noErr (0) No error
lapProtErr (-94) Error attaching protocol type.
Notes: If you provide a pointer to a protocol handler in protoPtr, ALAP will send
each frame with an ALAP protocol type of theLAPType to that protocol
handler.
If protoPtr is NIL, the default protocol handler will be used for receiving
frames with an ALAP protocol type of theLAPType. In this case, to receive
a frame you must call LAPRead to provide the default protocol handler with a buffer for placing the data. If, however, you've written your own protocol
handler and protoPtr points to it, your protocol handler will have the
responsibility for receiving the frame and it's not necessary to call