public Client(string address, int port)
{
try {
IPHostEntry hostInfo = Dns.GetHostByName(address);
_endpoint = new IPEndPoint(hostInfo.AddressList[0], port);
_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
_running = false;
_thread = new Thread(new ThreadStart(Work));
}catch(Exception e) {
}
}