title: Boost Socket/Acceptor cannot listen/connect on same port?
body: <p>I am a bit new to Boost, but I am trying to create a Server that can accept connections from a client on a given port. This Server should also be able to write to the client on the same port.  </p>
  
  <p>However, when I attempt to implement both using <code>acceptor_.bind()</code>/<code>acceptor_.listen()</code> as well as <code>socket_.connect(*iterator)</code> the <code>async_accept()</code> fails with an invalid function error.</p>
  
  <p>If I only use <code>acceptor_.bind()</code>, <code>acceptor_.listen()</code> I am able to write to the socket (from the Server to the Client) using <code>async_write()</code>.</p>
  
  <p>If I only use <code>socket_.connect()</code> (but comment out the <code>acceptor_.bind()</code>, <code>acceptor_.listen()</code>) I am able to read from the socket (data sent from Client to Server) using <code>async_read_some()</code>.</p>
  
  <p>Do I need to create a separate socket object or choose another port? I have reuse address enabled set to True.</p>