BlackSun
December 21st, 2004, 05:29 PM
Hello
I have 2 questions now that may be impossible to answer without seeing any code, but I'll ask them anyway.
1. In my app I have a server and a client. I use the same code as I used in a small testapp, and there it all worked, but now it doesn't. The problem is that after the client is connected to the server the server doesnt seem to recieve any traffic from the client, until the client is disconnected. Then some traffic somes through ( I think it is the last message sent), is there any possibility that this is a usual newbie-mistake that has a general solution ?
2. My server is a simple while-loop that runs the whole time the app is running. Now it has started to take upp to 98% of my CPU power. Any way this is related to the communication or something involved in it ? Cause if I just make a simple app with a loop that runs it doesn't take that much power.
Hope you can make anything out of my ramble, would be much appreciated.
TIA
BlackSun
I have 2 questions now that may be impossible to answer without seeing any code, but I'll ask them anyway.
1. In my app I have a server and a client. I use the same code as I used in a small testapp, and there it all worked, but now it doesn't. The problem is that after the client is connected to the server the server doesnt seem to recieve any traffic from the client, until the client is disconnected. Then some traffic somes through ( I think it is the last message sent), is there any possibility that this is a usual newbie-mistake that has a general solution ?
2. My server is a simple while-loop that runs the whole time the app is running. Now it has started to take upp to 98% of my CPU power. Any way this is related to the communication or something involved in it ? Cause if I just make a simple app with a loop that runs it doesn't take that much power.
Hope you can make anything out of my ramble, would be much appreciated.
TIA
BlackSun