Advertisement
ramomjcs

InfraCom - Tarefa2

Sep 25th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import java.io.*;
  2. import java.net.*;
  3. import java.io.IOException;
  4. import java.net.DatagramSocket;
  5. import java.net.InetAddress;
  6. import java.net.SocketTimeoutException;
  7.  
  8. public class Server{
  9. public static void main(String args[]) throws IOException{
  10. String inputClient;
  11. int porta = 8888;
  12. ServerSocket portaSocket = new ServerSocket(porta);
  13. System.out.println("Ouvindo" + porta);
  14.  
  15. while(true){
  16.  
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement