lgo_ProtocolMessage()
Retrieve a human-readable string describing the protocol.
#include "laygomsg.h" LMessage lgo_ProtocolMessage ( LProtocol protocol );
protocol | protocol to retrieve a description of |
lgo_ProtocolMessage() retrieves a human-readable string describing the protocol corresponding to a Protocol identifier returned by lgo_Protocol().
All calls to lgo_ProtocolMessage() are successful. If the protocol code is not defined, the message "LayGO protocol code not defined" is returned.
printf("CID %d is using protocol '%s'\n", cid, lgo_ProtocolMessage(lgo_Protocol(cid)));