Logo Search packages:      
Sourcecode: znc version File versions

void CDCCBounce::ConnectionRefused (  )  [virtual]

Override these functions for an easy interface when using the Socket Manager Don't bother using these callbacks if you are using this class directly (without Socket Manager) as the Socket Manager calls most of these callbacks

Connection Refused Event

Reimplemented from Csock.

Definition at line 41 of file DCCBounce.cpp.

References Csock::GetHostName(), Csock::GetPort(), and Csock::GetSockName().

                                   {
      DEBUG_ONLY(cout << GetSockName() << " == ConnectionRefused()" << endl);

      CString sType = (m_bIsChat) ? "Chat" : "Xfer";
      CString sHost = Csock::GetHostName();
      if (!sHost.empty()) {
            sHost = " to [" + sHost + ":" + CString(Csock::GetPort()) + "]";
      } else {
            sHost = ".";
      }

      m_pUser->PutStatus("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Connection Refused while connecting" + sHost);
}


Generated by  Doxygen 1.6.0   Back to index