예제 #1
0
        private void evtClientConnected(Socket soc)
        {
            IPEndPoint ip = (IPEndPoint)soc.RemoteEndPoint;

            string str = string.Format("{0}:{1} 접속 확인", ip.Address.ToString(), ip.Port);

            clsLog.WLog(str);

            //if (evtClientConected != null) evtClientConected(str);
        }
예제 #2
0
        public static void LogWrite(string strModule, string strMsg)
        {
            try
            {
                if (log == null)
                {
                    return;
                }

                string strMessage = string.Format("[{0}] [{1}] {2}", strLogHeader, strModule, strMsg);
                log.WLog(strMessage);
            }
            catch
            {}
        }