Luc please keep the different versions because it can be quite cool to teach and compare solutions. Le 1/2/15 15:30, Luc Fabresse a écrit :
Hi all,
Raining sunday ;-)
Images intégrées 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "In Pharo 3.0" Gofer it smalltalkhubUser: 'LucFabresse' project: 'Grimoire'; package: 'ChatApp'; load.
ChatApplication startLocalExample. ChatApplication stopLocalExample ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This a 1st draft version of a Chat Application that works. It is implemented in plain Socket with an ad hoc text protocol.
a *lot* should be improved, done or added:
- write tests (it is always a pain to write for client/server apps so here I skip them :-() - ensure that everything is correctly destroyed/cleaned (processes, sockets, streams, ...). it seems but... needs testing - refactor to use SocketStream? - better modularization of commands - another implementation using Zinc but it would imply using HTTP
Enjoy,
Luc