def createAsyncIOService(allow_epoll = True,
                         allow_kqueue = True,
                         allow_poll = True):
  '''Create an AsyncIOService supported by the platform and parameters.'''

  if (allow_epoll and hasattr(select, 'epoll')):
    return EPollAsyncIOService()
  elif (allow_kqueue and hasattr(select, 'kqueue')):
    return KQueueAsyncIOService()
  elif (allow_poll and hasattr(select, 'poll')):
    return PollAsyncIOService()
  else:
    return SelectAsyncIOService()
Create an AsyncIOService supported by the platform and parameters.
recipes/Python/577662_ASIO/recipe-577662.py