Good Evening Everyone,
I posted a message last week about having problems setting up
two iPaqs to communicate to each other in Adhoc mode. After setting
both up with static IPs we were able to use CAsyncSocket to zip any
type of file back and forth between the two iPaqs in Adhoc mode.
However a new problem has presented itself.
When we start our application and start sending data back and
forth through threads everything is great. However, one of the iPaqs
is hooked up to a cellular phone which needs to obtain an internet
connection and then route to our server. Using the CMHelper example
we brought up the internet connection however whenever we specify the
address of our server it tries to use the wireless network cards.
However if we obtain the internet connection first we can send data
back and forth through the internet and the wireless cards. If we
close the internet connection and then bring it back up again,
everything is routed through the wireless cards.
The question then is:
How do you specify that information for a socket should be sent
through COM1, and not through wireless cards?
I have spent many hours searching the google groups and the internet
for the solution but the closest I have come is the CreateFile and
WriteFile commands which will not help us in our task. Any guidance,
direction or even better one or two lines of code would greatly be
Thanks and Kind Regards,