/// <summary> /// 监视网关 /// </summary> public void ListenGateway(KG2C_Protocol protocolId, ProtocolHandler handler, Type type) { m_GatewayProtocolMapping.AddProtocolHandler((int)protocolId, handler, type); }
protected void RegistSocketListener(KG2C_Protocol protocolId, ProtocolHandler handler, Type type) { gatewaySocket.RegisterProtocol((int)protocolId, handler, type); }
protected void RegistProctect(KG2C_Protocol protocolId, Type type) { gatewaySocket.RegisterProtocol((int)protocolId, null, type); }