Hey guys. Long time no see. I was off the boards for about a year now. I hope I made some progress since last year(concerning C programming).
I wanted to write an Encrypted Chat System(p2p) and I did. But, I encountered major problems. To begin with, I know I should have used threading(not forking) for this...but I am learning threads now. I wanted to get this done faster and forking(with though less efficient) seemed to be the best way to do it(at least to me, it did). I managed to get it working, but the interface is messed up. It is very messy and it prints the messages in combination with the system messages.(they are all scrambled. I would be very thankful if you had the posibility to compile the program for me and see what I am talking about). I know I could use ncruses library to make an interface for it or even java(swing/awt)(IDK GTK), but I prefer to make it "pure" command line. So if there is any way to make the messages stay on sync and be arranged nicely...I would be very pleased.
Here is the source code: http://rafb.net/p/Gnb5jE30.html
I know there are some useless lines and the code is very bad...but I will organize it and remove the useless lines.