docs.oracle.com/javase/7/docs/api/java/net/DatagramSocket.html
DatagramSocket (Java Platform SE 7 )
Sends a datagram packet from this socket. The DatagramPacket includes information indicating the data to be sent, its length, the IP address of the remote host, and the port number on the remote host. If there is a security manager, and the socket is not c
docs.oracle.com
Constructs a datagram socket and binds it to any available port on the local host machine.
DatagramSocket(int port)
Constructs a datagram socket and binds it to the specified port on the local host machine.
'[공부용]참고 사이트 모음 > [java]' 카테고리의 다른 글
[java] 자바에서 날짜 변환하기 yyyy-mm-dd HH:mm:ss.SSS (0) | 2021.02.25 |
---|---|
[Java] String 의 특정 index의 문자열 교체 (0) | 2021.02.24 |
[java] 자바 2의 보수 16비트 바이너리 => 정수로 나타내는 법 (2) | 2020.12.10 |
[Java] 현재 컴퓨터 이름 얻기 InetAddress.getLocalHost().getHostName(); (0) | 2020.12.04 |
자바 스레드 주기 만들기,Timer, ScheduledExecutorService (0) | 2020.11.30 |