Interpreting Return Codes

Protocol Message

lgo_ProtocolMessage()

Retrieve a human-readable string describing the protocol.

Syntax
#include "laygomsg.h"

LMessage lgo_ProtocolMessage
    (
         LProtocol protocol
    );
protocolprotocol to retrieve a description of
Description

lgo_ProtocolMessage() retrieves a human-readable string describing the protocol corresponding to a Protocol identifier returned by lgo_Protocol().

Return Values

All calls to lgo_ProtocolMessage() are successful. If the protocol code is not defined, the message "LayGO protocol code not defined" is returned.

See Also

lgo_Protocol()

Example
printf("CID %d is using protocol '%s'\n", cid, lgo_ProtocolMessage(lgo_Protocol(cid)));