Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. public class Partecipanti implements Serializable {
  2.  
  3. final static long serialVersionUID = 1;
  4. String nome;
  5. String cognome;
  6. String cellulare;
  7. String email;
  8. String codiceCorso;
  9. String idOperatore;
  10.  
  11. public Partecipanti (String n, String co, String ce, String e, String cod, String id) {
  12. this.nome= n;
  13. this.cognome= co;
  14. this.cellulare= ce;
  15. this.email= e;
  16. this.codiceCorso= cod;
  17. this.idOperatore = id;
  18. }
  19. public String getNome() {
  20. return nome;
  21.  
  22. }
  23. public String getCognome() {
  24. return cognome;
  25.  
  26. }
  27. public String getCellulare() {
  28. return cellulare;
  29.  
  30. }
  31. public String getEmail() {
  32. return email;
  33.  
  34. }
  35. public String getCodiceCorso() {
  36. return codiceCorso;
  37.  
  38. }
  39. public String getIdOperatore() {
  40. return idOperatore;
  41. }
  42.  
  43.  
  44.  
  45.  
  46.  
  47. }
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. public class MyServer {
  55.  
  56. ServerSocket sSoc;
  57. Socket soc;
  58. ServerThread t;
  59. int porta = 12345;
  60.  
  61. public void main(String Args[]) {
  62. try {
  63.  
  64. sSoc = new ServerSocket(porta);
  65. System.out.println("Server avviato in ascolto sulla porta 12345");
  66. while(true) {
  67.  
  68. }
  69. }catch(IoException e){
  70. System.out.println(e);
  71. }
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement