Hi there,
Try defining optValueB as
unsigned long optValueB = 1 ;
Call NetLibSocketOptionSet after call to "NetLibSocketBind"
/ "bind " function /
Macro. I hope this solves your
problem.
Set family as "netSocketAddrINET" / "AF_INET" and s_addr as
"INADDR_ANY" in
sockaddr_in structure.
Cheers
Sajul.
> this is what i did :
>
> Boolean optValueB = true;
>
> NetLibSocketOptionSet (AppNetRefnum, mainSockShort,
netSocketOptLevelSocket,
> netSocketOptSockNonBlocking, &optValueB, 2, 1, &errP);
>
> & i called this function immediately after i created my socket. i also
tried
> calling it after i've made a socket connection. it still doesn't make
any
> difference. the socket calls that follow it continue to block. should
i be
> calling this funciton someplace else .. or is there anything else i
can do
> to prevent the blocking ?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/