Пример #1
0
        public AsyncTCPClient(int port)
        {
            IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
            IPAddress   ipAddress  = ipHostInfo.AddressList[0];

            endPoint = new IPEndPoint(ipAddress, port);

            File.Delete("log.txt");

            log = new logging(DateTime.Now.ToString("yyyyMMddhhmmss"), "");
            io  = new InputOutput(log);
        }
Пример #2
0
 public InputOutput(logging log)
 {
     this.log = log;
 }