17 lines
450 B
Java
17 lines
450 B
Java
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());
|
|
}
|
|
}
|
|
} |