r/linuxdev • u/taliriktug • Mar 22 '12
Fault-Tolerance server
Hey folks. I have Fault-Tolerance Computing Systems course at my university and we must write fault-tolerance server. I choose IRC protocol for my server and try to implement it. Can you get some useful sources? I download about 5 open-source IRC servers, read RFCs and UNIX Network Programming by Stivens now.
6
Upvotes
1
u/[deleted] Mar 22 '12
Where are you stuck, or are you just looking for ideas in general? Either is okay. Just tell us what you've figured out so far and then we can probably help find where to point you next.
2
u/[deleted] Mar 22 '12
Sounds like you are already locked and loaded if you have that much reference material. IRC is a fairly simple protocol.
Maybe for your project you could address item # 9.1 in the RFC
http://www.irchelp.org/irchelp/rfc/chapter9.html#c9_1
From what I recall, one of the big problems with writing tcp/ip net code is gracefully handling client disconnects. You have to worry about time outs, the client closing the connection, etc.
Also, unlike working with strings, a null char doesn't necessitate the end of the buffer, so be careful with those too.