home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / vmsnet / networks / tcpip / ucx / 283 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1006 b 

  1. Path: sparky!uunet!stanford.edu!rock!concert!decwrl!simpact!jmeinke
  2. From: jmeinke@dcs.simpact.com
  3. Newsgroups: vmsnet.networks.tcp-ip.ucx
  4. Subject: How to wakeup select
  5. Message-ID: <1993Jan22.162216.48@dcs.simpact.com>
  6. Date: 22 Jan 93 16:22:16 PDT
  7. Organization: Simpact Associates, San Diego CA
  8. Lines: 25
  9.  
  10. I'm using UCX 2.0, and programming at the socket library. 
  11.  
  12. I want to use 'select' in a way it wasn't intended to be used,
  13. and if someone knows whether I can do it or not, and if so,
  14. how, I'd like to hear about it. 
  15.  
  16. I want to do a blocking select, but be able to unblock it from
  17. an AST routine, ala Process Software's "select_wake()". For
  18. example, 
  19.  
  20.    if (select(FD_SETSIZE, &read_fd, 0, 0, 0) > 0) {
  21.       process the active sockets;
  22.    }
  23.      .
  24.      .
  25.    ast_routine() {
  26.       wakeup_select();
  27.    }
  28. -- 
  29. Jim Meinke, Simpact Associates        619-565-1865
  30. 9210 Sky Park Court                   jmeinke@dcs.simpact.com 
  31. San Diego, CA  92123  
  32.  
  33.  "I really didn't say everything I said." -- Yogi Berra
  34.  
  35.