Exemplo n.º 1
0
        public ClientInfo(RpcServer Server, string Name, int Id)
        {
            _Server = Server;
            _Name = Name;
            _Id = Id;
            Load();

            _Watch.Start();
        }
Exemplo n.º 2
0
        public ClientInfo(RpcServer Server, string Name, int Id)
        {
            _Server = Server;
            _Name   = Name;
            _Id     = Id;
            Load();

            _Watch.Start();
        }
Exemplo n.º 3
0
        public static bool InitRpcServer(string Name, string Key, int Port)
        {
            if (_Rs.ContainsKey(Port))
                return false;

            RpcServer Server = new RpcServer(Name, Key, Port);

            if (Server.Listen())
                _Rs.Add(Port, Server);
            else
                return false;

            return true;
        }
Exemplo n.º 4
0
        static public bool InitRpcServer(string Name, string Key, int Port)
        {
            if (_Rs.ContainsKey(Port))
            {
                return(false);
            }

            RpcServer Server = new RpcServer(Name, Key, Port);

            if (Server.Listen())
            {
                _Rs.Add(Port, Server);
            }
            else
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 5
0
 public RpcConnector()
 {
     PServer = _Server;
 }
Exemplo n.º 6
0
 public RpcConnector(RpcServer Server)
 {
     Log.Info("RpcConnector", "Server = " + Server);
     PServer = Server;
 }
Exemplo n.º 7
0
 public RpcConnector()
 {
     PServer = _Server;
 }
Exemplo n.º 8
0
 public RpcConnector(RpcServer Server)
 {
     Log.Info("RpcConnector", "Server = " + Server);
     PServer = Server;
 }