The function that i have used is
   
  Int16 Value = 1;
            
    rc = NetLibSocketOptionSet (appNetRef, appSocketRef,
    netSocketOptLevelSocket,netSocketOptSockNonBlocking, &Value, sizeof(Value), 
 1, &rc);

  By mistake i wrote down &optValueB in place of &Value in my previous mail.

Shruti Wadhwa <[EMAIL PROTECTED]> wrote:
    Hey, i used 
   
  Int16 Value = 1;
            
    rc = NetLibSocketOptionSet (appNetRef, appSocketRef,
    netSocketOptLevelSocket,netSocketOptSockNonBlocking, &optValueB, 
sizeof(Value),  1, &rc);

  once ane got 0 in rc that indicates no error, but still the connection is 
blocking..... 
  Am i wrong somewhere ????
   
  Shruti
  
Jeff Loucks <[EMAIL PROTECTED]> wrote:
    You only need to set a socket non-blocking once, using 
NetLibSocketOptionSet(). You use NetLibSocketOptionSet() to prepare the socket 
to send a notification as often as necessary.
   
  A non-blocking socket will perfom the requested operation normally, if it can 
complete without waiting. Otherwise, it will return an error (EWOULDBLOCK). For 
example, it will not wait for received data, or wait for a connection to 
complete, or wait for send buffers to become available. Be aware that socket 
operations may be partial, meaning you could ask for 1000 bytes and get only 
500, which means you'd need to keep reading until you get all you expect. 
   
  On 3/19/07, Shruti Wadhwa <[EMAIL PROTECTED]> wrote:   
What is the way to use non bocking socket. Is there  some parameter in API to 
set or we have to do it manually by inserting delay ??? 

Jeff Loucks <[EMAIL PROTECTED]> wrote:     If 'background' means in response to 
a notification or alarm, then you are sharing the UI task. Are you doing a 
BLOCKING read on the socket, waiting for data? If so, then the UI task is 
blocked, and nothing else in the UI task will have time to work. Use 
non-blocking sockets, so you don't hog the UI task. If you expect more data, 
arrange to be called again at a later time, and give the UI task back to the 
foreground. 
  
 
  On 3/16/07, Durgesh Trivedi < [EMAIL PROTECTED]> wrote:   when i m reading 
the data form the socket in the background at that time i m not able to make 
any click event on my forms means in the four ground  my forms r stop response 
to me i m unable to do any thing on the form what is the cause of that problem 
i don't understand 
do anybody have any idea abt that please suggest me .
Thanks
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/ 




-- 
[Jeff Loucks] -- For information on using the ACCESS Developer Forums, or to 
unsubscribe, please see http://www.access-company.com/developers/forums/
    
---------------------------------
  We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list. -- For information on 
using the ACCESS Developer Forums, or to unsubscribe, please see 
http://www.access-company.com/developers/forums/   
  





-- 
[Jeff Loucks] -- For information on using the ACCESS Developer Forums, or to 
unsubscribe, please see http://www.access-company.com/developers/forums/
    
---------------------------------
  Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games. -- For 
information on using the ACCESS Developer Forums, or to unsubscribe, please see 
http://www.access-company.com/developers/forums/

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to