inserimento codice socket udp
This commit is contained in:
17
ServerSconnesso/src/serversconnesso/ServerSconnesso.java
Normal file
17
ServerSconnesso/src/serversconnesso/ServerSconnesso.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package serversconnesso;
|
||||
|
||||
import com.mirimatcode.UDatagram;
|
||||
import java.io.IOException;
|
||||
|
||||
public class ServerSconnesso {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
try {
|
||||
String messaggio_ricevuto = UDatagram.listenString(5000);
|
||||
System.out.println("Ho ricevuto qualcosa del genere: " + messaggio_ricevuto);
|
||||
} catch (IOException ex) {
|
||||
System.out.println(ex.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user