Changeset 5647

Show
Ignore:
Timestamp:
08/06/12 13:48:26 (7 years ago)
Author:
cmatthew
Message:

New version of select, which uses Nitin's changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/net_select.repy

    r5632 r5647  
    118118    for fd in fd_list: 
    119119        bit_set(fd, ordinals) 
    120          
     120 
    121121    return ordinals 
    122122 
     
    127127    Args should have a nfds, bitvectors for read write and except, and a time. 
    128128    """ 
    129     print "\n!!!!!!!!!!!!!!", args 
    130     nonblocking = False 
    131     notimer = False 
    132129 
    133130    nfds = args[0] 
     
    142139    else: 
    143140        time, sec, usec = parse_timeval(args[4]) 
    144   
     141 
    145142    readfds = [] if readfds == None else get_fds(bit_string_to_bitlist(readfds), nfds) 
    146143    writefds = [] if writefds == None else get_fds(bit_string_to_bitlist(writefds), nfds) 
     
    158155    exceptfds = bit_bitlist_to_str(set_fds(exceptfds, nfds)) 
    159156 
    160  
    161  
    162  
    163     return SuccessResponseBuilder("net_select", rc, ''.join((used_timeval,readfds, writefds, exceptfds))) 
     157    return SuccessResponseBuilder("net_select", rc, ''.join((used_timeval, readfds, writefds, exceptfds))) 
    164158 
    165159