Requesting Information

Protocol

lgo_Protocol()

Determine the protocol used on a connection.

Syntax
#include "laygo.h"

LProtocol lgo_Protocol
    (
          LCid    cid
    );
cidconnection on which to determine protocol used
Description

lgo_Protocol() determines the protocol used on a connection.

Return Values

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:

See Also

lgo_ProtocolMessage()

Example
printf("The protocol of CID %d is %s\n", (int) cid, lgo_ProtocolMessage(lgo_Protocol(cid));