I have done a small amount of programming using fork() to create a child process. I want to have a client/server pair to be able to send message string back and forth simulataneously so that while one is typing in a message, a message can be receieved from the other and printed. I supposed I could use fork but is there a better way to do this?
To make it a little more clear:
Say a user is typing in a message, at the same time a message comes over the line. I want to be able to print that message to the screen WHILE the user is still typing in a message.
Any help is appreciated.