• Joel Martin's avatar
    wswrapper: add dup2, fix select w/ NULL timeout. · 86725f9b
    Joel Martin authored
    - add dup2 functionality. This requires adding a ref cnt to the
      _WS_connections structure so that we only free the structure once
      all dup'd referenced are closed. Also, refactor malloc and free of
      connection structure into _WS_alloc and _WS_free.
    - allow select to accept a NULL timeout value which means sleep
      forever instead of segfaulting.
    - fix some compile warnings related to ppoll definition.
    - move some WebSockets related html test pages into utils and symlink
      them from tests.
    86725f9b
wsecho.html 5.44 KB