Hi
Be sure that you have checked the option of Redirect the NetLib calls to
host TCP/IP on Emulator.
With Regards,
Amit Kalekar
[EMAIL PROTECTED]
----------------------------------------------------------------------------
----
Kalpadrum Infotech Pvt.Ltd.
www.kalpadrum.com
>>>>>>>>>>>>>>>>>>>>>>>
Hi All,
I am a beginner in developing Palm OS applicatoin to accesss web page!
I am using CodeWarrior 7.0 under WINNT and using POSE with
a rom image of OS version 3.5.
I've tried the following code:
/////////////////////////////////////////////////////////
UInt16 errno;
UInt16 refno=0;
NetSocketRef socket;
NetIPAddr ipaddr;
NetSocketAddrINType addr_in;
UInt16 addrlen;
Err err;
errno = SysLibFind("Net.lib",&refno);
NetLibOpen(refno, &errno);
if ((socket=NetLibSocketOpen
(refno,netSocketAddrINET,netSocketTypeStream,0,-1,&err))==-1)
{
return;
}
if((ipaddr=NetLibAddrAToIN(refno,"127.0.0.1"))==-1)
{
return;
}
addr_in.addr=ipaddr;
addr_in.family=netSocketAddrINET ;
addr_in.port=NetHToNS (80);
addrlen=sizeof(addr_in);
if (NetLibSocketConnect(refno, socket,(NetSocketAddrType*)
&addr_in,addrlen,-1,&err)==-1)
return;
if (err == netErrSocketBusy)
{
return;
}
/////////////////////////////////////////////////////////
I found in calling the NetLibSocketConnect Functions ..the return
value is -1.
and the error indicates is neterrorsocketbusy.
What is the reason about this?
Do I need to do any setting at the emulator?
Thanks for your help!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/