コード例 #1
0
        public LogOutputSocketProtocol(AsyncSocketServer asyncSocketServer, AsyncSocketUserToken asyncSocketUserToken)
            : base(asyncSocketServer, asyncSocketUserToken)
        {
            m_socketFlag     = "LogOutput";
            m_logFixedBuffer = new LogFixedBuffer();
            lock (Program.AsyncSocketSvr.LogOutputSocketProtocolMgr)
            {
                Program.AsyncSocketSvr.LogOutputSocketProtocolMgr.Add(this);
            }

            SendResponse();
        }
コード例 #2
0
        public HttpClientProtocol(AsyncSocketServer http, AsyncSocketUserToken asyncSocketUserToken)
            : base(http, asyncSocketUserToken)
        {
            KeyHtm           = new Dictionary <string, httpEventHandler>();
            m_socketFlag     = "HttpClient";
            m_logFixedBuffer = new LogFixedBuffer();
            lock (http.LogOutputSocketProtocolMgr)
            {
                http.HttpClientSocketProtocolMgr.Add(this);
            }
            httpEntity = http;

            Debug.WriteLog.Log(eLogLevel.ell_Info, "客户端连接 :" + clientSocket.RemoteEndPoint.ToString());
            // bs = new Busness.business();
            timer.Interval = 10000;
            timer.Elapsed += timer_Elapsed;
            tool           = new Tools();
        }
コード例 #3
0
        public LogOutputSocketProtocol(AsyncSocketServer asyncSocketServer, AsyncSocketUserToken asyncSocketUserToken)
            : base(asyncSocketServer, asyncSocketUserToken)
        {
            m_socketFlag = "LogOutput";
            m_logFixedBuffer = new LogFixedBuffer();
            lock (Program.AsyncSocketSvr.LogOutputSocketProtocolMgr)
            {
                Program.AsyncSocketSvr.LogOutputSocketProtocolMgr.Add(this);
            }

            SendResponse();
        }