コード例 #1
0
ファイル: AresClient.cs プロジェクト: silverx69/Zorbo
        internal AresClient(AresServer server, ISocket socket, ushort id)
        {
            this.Id = id;

            this.server = server;
            this.Socket = socket;
            this.Socket.PacketReceived += OnPacketReceived;

            this.jointime   = DateTime.Now;
            this.LastPing   = this.jointime;
            this.LastUpdate = this.jointime;

            this.Ignored        = new ModelList <string>();
            this.Counters       = new Dictionary <byte, IFloodCounter>();
            this.extended_props = new Dictionary <string, object>();
        }
コード例 #2
0
        internal AresClient(AresServer server, ISocket socket, ushort id)
        {
            this.id = id;

            this.server = server;
            this.socket = socket;
            this.socket.PacketReceived  += OnPacketReceived;
            this.Socket.RequestReceived += OnHttpRequestReceived;

            this.jointime   = DateTime.Now;
            this.lastupdate = this.jointime;

            this.ignored        = new ModelList <string>();
            this.counters       = new Dictionary <byte, FloodCounter>();
            this.extended_props = new Dictionary <string, object>();
        }