BobChat
BobChat is a simple "IRC Chat"-like program. As this is several degrees more complicated then other examples I've done on this site so I'm going to do it a bit differently.
Below and on the side you'll find links to individual pieces of each version of BobChat. I originally attempted to build BobChat using the techniques in v0.1 and iteratively made changes until I ended up with v0.3.
The simplest example is v0.1. I recommend that you start with that as it has the lowest signal to noise ratio... By which I mean, the focus of v0.1 is the mechanics of Sockets and Threading. The later versions are trying to wrap up those basic concepts in a pretty and more functional package. So if you're really just interested in seeing some sockets / threading code v0.1 will probably be the most enlightening example.
BobChat Index
- Version 0.1
- Asynchronus Server (select-based)
- Threaded Client (One thread reads, one thread writes)
- Totally Function Based (No Objects or Components)
- Version 0.2
- Object Oriented examples of BobChat
- Commands and Administration
- Version 0.3
- Continued Object Orientation
- Introduction of the Protocol Module
- Concept of a Message Object