import java.io.*;
import java.net.*;

public class Sender {
    public static void main(String[] args) throws IOException {
        DatagramSocket socket = null;
        socket = new DatagramSocket();
        
        String s = "우리는 여전히 우리 운명의 주인이다.";
        byte[] buf = s.getBytes();
        
        InetAddress address = InetAddress.getByName("127.0.0.1");
        DatagramPacket packet = new DatagramPacket(buf, buf.length, address, 5000);
        
        socket.send(packet);
        socket.close();
        System.out.println("데이터 전송 완료");
    }
}
