create the server async_http( poll forever asyncore loop(see alsosocket ( )select ( )http ( )socketserver ( select the select module provides access to the select(and poll(system calls select(is typically used to implement polling or to multiplex processing across multiple input/output streams without using threads or subprocesses on unixit works for filessocketspipesand most other file types on windowsit only works for sockets select(iwtdowtdewtd [timeout]queries the inputoutputand exceptional status of group of file descriptors the first three arguments are lists containing either integer file descriptors or objects with methodfileno()that can be used to return file descriptor the iwtd parameter specifies objects waiting for inputowtd specifies objects waiting for outputand ewtd specifies objects waiting for an exceptional condition each list may be empty timeout is floating-point number specifying timeout period in seconds if timeout is omittedthe function waits until at least one file descriptor is ready if it' the function merely performs poll and returns immediately the return value is tuple of lists containing the objects that are ready these are subsets of the first three arguments if none of the objects is ready before the timeout occursthree empty lists are returned if an error occursa select error exception raised its value is the same as that returned by ioerror and oserror poll(creates polling object that utilizes the poll(system call this is only available on systems that support poll( polling objectpreturned by poll(supports the following methodsp register(fd [eventmask]registers new file descriptorfd fd is either an integer file descriptor or an object that provides the fileno(method from which the descriptor can be obtained eventmask is the bitwise or of the following flagswhich indicate events of interestconstant description pollin pollpri pollout pollerr data is available for reading urgent data is available for reading ready for writing error condition lib fl ff