잡개발
자바 UDP 소켓 양방향 통신
클라이언트 import java.io.IOException; import java.net.*; import java.util.Scanner; public class UDPEchoClient { public static void main(String args[]) throws IOException { int svrPort = 1234; int clnPort = 4321; String sbye = ""; Scanner cin = new Scanner(System.in); DatagramSocket dgSocket = new DatagramSocket(clnPort); InetAddress remote_addr = InetAddress.getByName("127.0.0.1"); do { System.out.p..
2022. 6. 3. 16:23
최근댓글