TerribleTim
Programmer
I'm writing a simple client/server program in python, and I think I need to use threads or forks or somthing, but I don't know what command I'm looking for.
Currently I have seperate client and server programs, they work fine, I can send a message from the client and the server receives it. What I want is for both computers to act as client and server (think chat).
When I try to combine them, I get stuck in an infinate loop of the server waiting for the client to send it some data, therefore I can't get the place to input some data for the client to send.
So how can I get these both working at once?
Currently I have seperate client and server programs, they work fine, I can send a message from the client and the server receives it. What I want is for both computers to act as client and server (think chat).
When I try to combine them, I get stuck in an infinate loop of the server waiting for the client to send it some data, therefore I can't get the place to input some data for the client to send.
So how can I get these both working at once?