Click to See Complete Forum and Search --> : CSocket networkapp for PDA


EirikO
July 5th, 2007, 10:13 AM
I need a application that can both send and recieve, but have som problems.
Every 0.5 second the app gets a input and the user can send integers all the time. When the user sends f.eks. "20" he gets a different input back. (Still every 0.5 sec).

First of all, should I use CAsyncSocket or CSocket?

It seems like my problem is when I try to send someting with myClientSocket.Send(msg, size) and a listning socket is listning..

I have tried to disconnect the listning socket and reconnect after I have sent the message, but I can't quite figure out how to do it..

Anyone who understood my problem..? Please help me.