#include "sg_socket.hxx"
bool SGSocket::init = false;
+using std::string;
SGSocket::SGSocket( const string& host, const string& port_,
const string& style ) :
return false;
}
- if (sock.bind( "", port ) < 0)
+ if (sock.bind( hostname.c_str(), port ) < 0)
{
SG_LOG( SG_IO, SG_ALERT,
"Error: bind() failed in make_server_socket()" );