I am trying to get two PDAs to talk to each other and pass
files back and forth. They are set up on a wireless
network already. (AdHoc).
I have set up the Server using eVC and it appears to be in
a listening mode. (I have it time out after 20 seconds)
And everything on that end looks fine.
On the Client side, I have the following lines of code:
sock = socket (AF_INET, SOCK_STREAM, 0);
if ((ph = gethostbyname (HostName)) == NULL)
MessageBox (NULL, TEXT("Error", szAppName, MB_OK);
HostName is just a character string set to the name of the
Server PDA.
Everytime I run it, it says it cannot find the host. No
matter what I do.
Any ideas? I have the hardcoded IP address and wanted to
just code that into the SOCKADDR_IN struct. But there
does not seem to be an easy way to do this.
Please help.
Ben