Some code to get Winsock working over GPRS on a PPC 2003?
October 4, 2006 5:05 AM
Subscribe
How do I program Winsock to work right over a GPRS connection on a PPC 2003?
So I have a Pocket PC 2003 and it's also a mobile phone (one of the new HP iPaqs Cingular offers).
I'm looking for some code to start and process a connection with the ConnectionManager, then connect and send/receive bytes with Winsock (socket, connect, send, recv). I can initiate a connection with EstablishConnectionSync and check the status, and even get the IP address, but when I try to do a DNS lookup with Winsock it gives me addresses that don't make sense, and it won't connect to remote IPs. I'm even binding to the IP I get from the Connection Manager (as has been suggested when you have a multihomed computer and want to use a specific interface), and I think it's right because I can ping google.com from Pocket Ping and it registers the same local IP I get from the ConnectionManager.
I've been searching for about a week and I can't find an example of anything that attaches to GPRS, makes a connection over Winsock and sends and receives data. Do I have to use the Wininet API (ugh) or can I stick with my regular winsock code that works perfectly on my desktop PC? I'm using eVC++ 3.0.
What critical step am I missing here??!?
Thanks very much in advance...
posted by ostranenie to computers & internet (4 comments total)
posted by mr_silver at 5:55 AM on October 4, 2006