UDP correct
This commit is contained in:
parent
7214ce5563
commit
089b5457cd
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ public class UdpUnicastClient implements Runnable{
|
|||
|
||||
|
||||
public void run() {
|
||||
try(DatagramSocket clientSocket = new DatagramSocket(7000)){
|
||||
try(DatagramSocket clientSocket = new DatagramSocket(port)){
|
||||
byte[] buffer = new byte[65507];
|
||||
//clientSocket.setSoTimeout(3000);
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in a new issue