C# UDP Server/Client 예제
//ServerSystem.Net.Sockets.UdpClient udpClient = new System.Net.Sockets.UdpClient("127.0.0.1", 5555);String cmd = "dump";System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();byte[] dgrams = encoding.GetBytes(cmd);udpClient.Send(dgrams, dgrams.Length);udpClient.Close(); //Clientstatic private UdpClient udpServer;static private byte[] data;static private IPEndPoint ipep = new IPEnd..
프로그래밍
2017. 2. 3. 22:49
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday