/// <summary> /// 监视GameServer /// </summary> /// <param name="protocolId"></param> /// <param name="handler"></param> /// <param name="type"></param> public void ListenGameServer(KS2C_Protocol protocolId, ProtocolHandler handler, Type type) { m_GameServerProtocolMapping.AddProtocolHandler((int)protocolId, handler, type); }
protected void RegistSocketListener(KS2C_Protocol protocolId, ProtocolHandler handler, Type type) { gameSocket.RegisterProtocol((int)protocolId, handler, type); }
protected void RegistProctect(KS2C_Protocol protocolId, Type type) { gameSocket.RegisterProtocol((int)protocolId, null, type); }