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(); }
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(); }