lgo_Pop()
Remove the top protocol service from a stack of services.
#include "laygo.h" LResult lgo_Pop ( LCid cid );
cid | connection to remove from the top of the stack |
lgo_Pop() removes the top connection from a protocol stack assembled using lgo_Push(). The connection must be in the open state to pop it, and the connection below may not be detached.
If successful, lgo_Pop() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
LCid physicalLayer; LCid linkLayer; lgo_Push(physicalLayer, linkLayer); /* processing... */ lgo_Pop(linkLayer);