Connection: Move socket creation out of setup

Once we support IPv6, we won’t be able to create a socket until we
know which address family to use.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-08-17 08:45:39 -04:00
parent c1f96b37a1
commit 110cce3773
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ namespace Network {
static const int CONGESTION_TIMESTAMP_PENALTY = 500; /* ms */
static bool try_bind( int socket, uint32_t addr, int port_low, int port_high );
bool try_bind( uint32_t addr, int port_low, int port_high );
class Socket
{