Clone this repo:

Branches

  1. 060b7d8 Remove unused <sys/select.h> inclusion by George Kulakowski · 3 days ago master
  2. eb26897 Don't dump stack when there's no network by Ian McKellar · 9 days ago
  3. d140012 Migrate to the new MX_ error codes by George Kulakowski · 2 weeks ago
  4. 59616c6 Use the POLL* bits, not the EPOLL* bits by George Kulakowski · 3 weeks ago
  5. 987e046 listen: close conn and don't exit on launch fail by James Tucker · 3 weeks ago

listen

This implements a simple program that listens for connections on a particular TCP port and spawns a program for each connection. Connecting the socket to mxio stdin and passing the parent's stdout & stderr.

It's currently not possible to pass the socket as more than one start-up handle.