public IncomingGameServerPeer(InitRequest initRequest, MasterApplication application) : base(initRequest) { this.application = application; log.InfoFormat("game server connection from {0}:{1} established (id={2})", this.RemoteIP, this.RemotePort, this.ConnectionId); this.SetPrivateCustomTypeCache(this.application.GetS2SCustomTypeCache()); }
public GameServerContext(GameServerContextManager gameServerContextManager, MasterApplication application, IRegisterGameServer request) { this.contextManager = gameServerContextManager; this.application = application; this.AddressInfo = GameServerAddressInfo.CreateAddressInfo(request, log); this.Key = GetKey(request); this.ServerId = request.ServerId; this.LoadBalancerPriority = request.LoadBalancerPriority; this.State = ServerState.Offline; if (request.SupportedProtocols != null && request.SupportedProtocols.Length != 0) { this.SupportedProtocols = new List <byte>(request.SupportedProtocols); } }
public IncomingGameServerPeer(InitRequest initRequest, MasterApplication application) : base(initRequest.Protocol, initRequest.PhotonPeer) { this.application = application; log.InfoFormat("game server connection from {0}:{1} established (id={2})", this.RemoteIP, this.RemotePort, this.ConnectionId); }
public GameServerContextManager(MasterApplication application, int contextTTL) { this.application = application; this.contextTTL = contextTTL; this.fiber.Start(); }
public NewsService(MasterApplication app) { application = app; }