Hello

I have ceated a server for my palm apllication which resides in the link :

http://www.websamba.com/mmmls

my server is called mmmls.

I'm trying to connect to the server with this code but i cannot connect to
the server, is there anything that I'm missing or the code is wrong, and
please
help me on this because I'm a beginner in Palm Networking:

NetHostInfoPtr hostInfoP;
NetHostInfoBufPtr hostInfoBufP;
NetIPAddr *IPaddressP;

hostInfoP = NetLibGetHostByName(AppNetRefnum, "www.websamba.com/mmmls",
hostInfoBufP, AppNetTimeout, &err);
OR
hostInfoP = NetLibGetHostByName(AppNetRefnum,
www.websamba.com/mmmls/main.asp, hostInfoBufP, AppNetTimeout, &err);

 if(hostInfoP != 0)
 {
  IPaddressP = (NetIPAddr *) hostInfoBufP->addressList[0];
  mySockAddr.addr = NetNToHL(*IPaddressP);

 }

mySockAddr.family = netSocketAddrINET;
mySockAddr.port = 80;

result = NetLibSocketConnect (AppNetRefnum, mySockFd, (NetSocketAddrType*)
&mySockAddr, sizeof(mySockAddr), AppNetTimeout, &err);


Thanx in advance
Mohammad Afshari



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to