InspSocket::InspSocket(InspIRCd* SI)
{
+ this->Timeout = NULL;
this->state = I_DISCONNECTED;
this->fd = -1;
this->WaitingForWriteEvent = false;
InspSocket::InspSocket(InspIRCd* SI, int newfd, const char* ip)
{
+ this->Timeout = NULL;
this->fd = newfd;
this->state = I_CONNECTED;
strlcpy(this->IP,ip,MAXBUF);
break;
case I_LISTENING:
{
+ Instance->Log(DEBUG,"InspSocket listen event");
sockaddr* client = new sockaddr[2];
length = sizeof (sockaddr_in);
std::string recvip;
#endif
incoming = accept (this->fd, client, &length);
+ Instance->Log(DEBUG,"Accepted socket, sockaddr length %d fd %d", length, incoming);
+
#ifdef IPV6
if ((!*this->host) || strchr(this->host, ':'))
{
#else
recvip = inet_ntoa(((sockaddr_in*)client)->sin_addr);
#endif
+ Instance->Log(DEBUG,"Call OnIncomingConnection, recvip=%s", recvip.c_str());
this->OnIncomingConnection(incoming, (char*)recvip.c_str());
if (this->IsIOHooked)