I can setup a program to read from a port, then write to a
port, etc., etc., etc.
Here's what I want to do:
Setup a program to not have to read / write in any
particular order.
Simple example:
Let's say I was experimenting with a chat server/client.
right now it is all text based
There will be a client for linux, and one for windows.
The server will run on linux.
Now, obviously, unless I want it to go
1 person talk, other person wait, other person talk, etc...
I need to set up some way of having the client and server
listen and talk at the same time so that way neither has to
wait for the other to type in what they want to say, etc.
I have already tried to look at the source code for IRC.
IRC has become so big that it is now in too many files to
follow the logic that makes it work.
|