title: A test for SocketServer backlogs in Java
body: <p>In C I could select/poll a bound sockets file descriptor to check for waiting connections. Now that I am learning java sockets, all I have found is for an equivalent is thread loop ed that constantly tries to accept and waits for the accept to time out or a client to connect.</p>
  
  <p>Is there a way to test the SocketServer class for pending connections in the backlog besides trying and timing out on the accept command? I am looking for way to make a single thread server without having to wait on an accept call to timeout constantly.</p>