Implementato esercizio con UDP connessi.

This commit is contained in:
2014-06-09 03:50:43 +02:00
parent 4c790f8443
commit dc2c840353
14 changed files with 503 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
SONO STATI CALCOALTI ERRORI SU READ,WRITE,CONNECT,SIGNALS
IL SERVER RISPONDE A SOLO UNA ISTANZA E LE READ/WRITE SONO BLOCCANTI (SENZA SELECT)
PROTOCOLLO USATO UDP CONNESSO - 1 a 1
il server gestisce un file archivio.txt
il client puo inviare:
BYE - per chiudere la connessione
AGGIUNGI <NOME> <VOTO> - per far aggiungere un nome al server
VERIFICA <NOME> - per verificare se un nome è presente nel database del server
il server risponde:
BYE - A BYE
AGGIUNTO - AL COMANDO AGGIUNGI DEL CLIENT
EVENTUALI INFORMAZIONI SUI DATI - AL COMADNO VERIFICA