Attach to a communication service.
#include "laygo.h" LCid lgo_Attach ( LService service );
|service||name of the service as given to lgo_Open()|
If successful, lgo_Attach() returns a non-negative connection identifier (CID) which uniquely identifies the connection during subsequent transactions. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
LCid cid; cid = lgo_Attach("PHYS0");