title: listen() without calling bind()
body: <p>I tried the following:</p>
  
  <pre><code>int sockfd = socket(...);
  listen(sockfd, 10);
  accept(sockfd, ...);
  </code></pre>
  
  <p>None of the calls failed, and the program just started blocking as if I had called bind(). What will happen in this case? Will it just be impossible to ever receive a connection, since it has no local address or port? Or was it implicitly assigned a local address and port, and now it is listening on those? If so, how can I retrieve what those are?</p>