Example #1
0
 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 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());
 }
Example #3
0
        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 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);
 }
Example #6
0
 public GameServerContextManager(MasterApplication application, int contextTTL)
 {
     this.application = application;
     this.contextTTL  = contextTTL;
     this.fiber.Start();
 }
Example #7
0
 public NewsService(MasterApplication app)
 {
     application = app;
 }