Commits
- Commit:
0a53bd62d11ed31ce71da1fc9993bc25a6c93755
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch from libevent to a smaller, thin wrapper around poll()
libevent is a very cool library, I like its APIs and enjoy using
it. However, for amused it is maybe a bit too much since it doesn't
deal with too many file descriptors. Amused only needs to monitor
one fd for the player process and the currently connected clients.
Given that it runs per-user locally, having more than a dozen of
fds open is very, very rare.
- Commit:
949b5c2eb6f46f77b423a93558d196204dce2953
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor control_notify
it's awkward to call it with the address of the imsgev struct inside
the ctl_conn struct. Just relay the info to every client in monitor
mode. After all, if a client is in monitor mode *and* issues
commands, it's not strange that they're echoed back (note that this is
currently impossible, the command line client can either issue
commands or be in monitor mode.)
- Commit:
87f575c3c6293c5cdff2b424a9f182f1857248f3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a monitor functionality
this pings all the "interesting" events to clients that issued a
IMSG_CTL_MONITOR, except to the one that generated such event.
- Commit:
3baa2617f8fa715685929c415068ab226626a2a3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initial commit