Raining sunday ;-)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"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