socket_ref[this->fd] = this;
}
-InspSocket::InspSocket(std::string ahost, int port, bool listening, unsigned long maxtime)
+InspSocket::InspSocket(std::string ahost, int aport, bool listening, unsigned long maxtime)
{
this->fd = -1;
this->host = ahost;
}
else
{
- if (BindSocket(this->fd,this->client,this->server,port,(char*)ahost.c_str()) == ERROR)
+ if (BindSocket(this->fd,this->client,this->server,aport,(char*)ahost.c_str()) == ERROR)
{
this->Close();
this->fd = -1;
}
else
{
- this->host = host;
- this->port = port;
+ this->host = ahost;
+ this->port = aport;
if (!inet_aton(host.c_str(),&addy))
{