示例#1
0
        public SOEConnectionManager(SOEServer server)
        {
            // Server
            Server = server;

            // Our client lists
            Clients            = new List <SOEClient>();
            Host2ClientID      = new Dictionary <IPEndPoint, int>();
            SessionID2ClientID = new Dictionary <uint, int>();

            // Log
            Log("Service constructed");
        }
示例#2
0
        public SOEProtocol(SOEServer server, string protocol)
        {
            // This components settings
            Server         = server;
            ProtocolString = protocol;

            // Make our protocol known
            MessageHandlers.MakeProtocol(protocol);

            // Log
            Log("Service constructed");
            Log("Using protocol -- {0}", ProtocolString);
        }
示例#3
0
        public SOEConnectionManager(SOEServer server)
        {
            // Server
            Server = server;

            // Our client lists
            Clients = new List<SOEClient>();
            Host2ClientID = new Dictionary<IPEndPoint, int>();
            SessionID2ClientID = new Dictionary<uint, int>();

            // Log
            Log("Service constructed");
        }
示例#4
0
        public SOEProtocol(SOEServer server, string protocol)
        {
            // This components settings
            Server = server;
            ProtocolString = protocol;

            // Make our protocol known
            MessageHandlers.MakeProtocol(protocol);

            // Log
            Log("Service constructed");
            Log("Using protocol -- {0}", ProtocolString);
        }
示例#5
0
        public SOEClient(SOEConnectionManager manager, IPEndPoint client)
        {
            // Manager and server
            Server      = manager.Server;
            Manager     = manager;
            Client      = client;
            DataChannel = new SOEDataChannel(this);

            // Session
            SessionStarted = false;
            Encryptable    = false;
            Compressable   = true;

            Encrypted = false;

            // This client is new
            Interact();
        }
示例#6
0
        public SOEClient(SOEConnectionManager manager, IPEndPoint client)
        {
            // Manager and server
            Server = manager.Server;
            Manager = manager;
            Client = client;
            DataChannel = new SOEDataChannel(this);

            // Session
            SessionStarted = false;
            Encryptable = false;
            Compressable = true;

            Encrypted = false;

            // This client is new
            Interact();
        }