lgo_Protocol()
Determine the protocol used on a connection.
#include "laygo.h" LProtocol lgo_Protocol ( LCid cid );
cid | connection on which to determine protocol used |
lgo_Protocol() determines the protocol used on a connection.
If successful, lgo_Protocol() returns a non-negative protocol identifier which identifies the protocol used on connections opened to that service. Possible successful return values are:
Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
printf("The protocol of CID %d is %s\n", (int) cid, lgo_ProtocolMessage(lgo_Protocol(cid));