summaryrefslogtreecommitdiff
path: root/server.py
AgeCommit message (Collapse)Author
2015-06-23handle the case when no cards are collectedOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14use a python package instead of just modulesOlivier Gayot
The package is contained in the CAO/ folder. server.py is still at the root of the repository though. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-08the server now handles the language properlyOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04listen to the world instead of localhostOlivier Gayot
it is dangerous, but that's what is interesting ! Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04handle the disconnection of the clientsOlivier Gayot
when a client disconnects, we must not try to send him a message since its socket is destroyed. However, a race condition can still probably occur if a client is disconnected during the handling of a request which leads to a notification. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04added a system of notificationOlivier Gayot
what the client will receive will look like: {'type': TYPE, 'content': CONTENT} TYPE will be either 'notification' or 'response' CONTENT will be the content of the notification or the response Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04fixed bug the card id was considered a stringOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04add a working main server fileOlivier Gayot
The server is ready to deal with requests from web browsers. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04removed useless contentOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-03added a first version of the server main functionOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>