Debuggen unter VS2005 und zus. TCP/IP Verbindung
Hello alle, hier eine Frage (leider auf englisch):
My workfield:
Pocket PC HP iPAQ hx2410
Windows Mobile 5.0
BlueTooth and WiFi
VS2005
MFC
1. Cradle the PDA over USB and ActiveSync 4.1 and establish a TCP/IP connection (RNDIS) to desktop pc->start debug your application.
2. Trying to establish a connection from PDA(as Server) to other Device(Client)(e.g. second PDA) over second TCP/IP connection I HAVE PROBLEMS!!!
Have anybody also ever had problems with this ?
I do the following (in MFC C++ code):
- Create TCP server with:
a) socket()
b) bind()
c) listen()
-look if server would block with select()
-accept the knocking client with accept()
-send a command to client with send()
start loop:
-look if client would block with select() (*)
-receive command with recv_all
-send command to client with send()
(->loop)
(*)the first time this select for client is passed there is everything ok, but then the select gets every time a timeout because I have a second tcp/ip connection from PDA to Desktop-PC (over ActiveSync 4.1). When the PDA is not in cradle (and so has no tcp/ip connection to Desktop-PC) everything is OK and the select() does not return with timeout.
Does anybody have any ideas?
Thank you.