----- Original Message ----- 
From: "Jonathan Niedfeldt" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 10:03 PM
Subject: NetLibReceive() blocks


> =========  Code snippet ===============
> static BOOL SetupNetwork()
> {
>  BOOL bRet = true;
>  Err error;
>  UInt16 ifErrs;
>  NetSocketAddrINType *inetAddrP;
>  BOOL blockFlag = false;
>

[...]

> // Set the socket to not block on read
>
>  if( NetLibSocketOptionSet( AppNetRefNum,
>     AppNetSocketRef,
>     netSocketOptLevelSocket,
>     netSocketOptSockNonBlocking,
>     &blockFlag,
>     sizeof(blockFlag),
>     AppNetTimeout,
>     &ifErrs) )
>  {
>   MessageBox( "Could not set non-blocking on socket" );
>   FrmGotoForm(MainForm);
>   return(false);
>  }
>

I think you should set blockFlag to true. This is the flag for NonBlocking.
True means nonblocking.

HTH,

Vu


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

Reply via email to