title: C or C++ with libevent/libev: monitor a unix socket
body: <p>I'm trying to monitor a unix socket ("/tmp/mysocket").</p>
  
  <p>I can do this fine in Node.js: it raises an event when 1) a socket is bound, 2) someone connects to the socket, 3) data is sent to the socket and 4) the socket is disconnected.</p>
  
  <p>I'm trying to now do this in C/C++: I want to monitor "/tmp/mysocket" for the above events. I've looked at libevent (which I'd preferably like to use), but see that it requires an IP:port. Is there any way to monitor unix sockets?</p>
  
  <p>Or can anyone suggest another C/C++ solution?</p>