byte[] sendbuffer = Encoding.Default.GetBytes("1234567890"); Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IAsyncResult asyncResult = client.BeginConnect("127.0.0.1", 19200, null, null); if (asyncResult.AsyncWaitHandle.WaitOne(5000, false)) //5초대기 { //서버 연결 성공 client.EndConnect(asyncResult); client.Send(sendbuffe..