请问枚举类型 后边有参数是怎么回事?
struct JNetConfig{
enum TransmissionProtocol
{
// UserDefinedProto,/**< Specifies a user defined protocol. */
TCPProto=1, /**< Specifies the internal RAW TCP protocol. */
UDPProto, /**< Specifies the internal RAW UDP protocol. */
RTPProto, /**< Specifies the internal RTP/RTCP protocol. */
};
}
= JNetConfig::TransmissionProtocol(type & 0xFFFF);//这句是调用