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); }
public InputOutput(logging log) { this.log = log; }