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