CTCPNoSuchService

Name

CTCPNoSuchService -- Exception thrown if a nonexistent service is referenced

Synopsis


#include <CTCPNoSuchService.h>
       class CTCPNoSuchService
{
    
  CTCPNoSuchService( const std::string&  service, const  std::string&  Doing);
    
   const std::string  getService() ();
  
      virtual const  const char*  ReasonText();
  

};
   

DESCRIPTION

This exception class is thrown when the socket library detects an attempt to connect to a nonexistent service. This normally indicates a failure to lookup a named service in the local hosts service database (e.g. /etc/services).

METHODS

CTCPNoSuchService( const std::string& service, const std::string& Doing);

Constructs the exception class. service is the service string. and Doing is a string that describes what the library was doing when it threw the exception.

const std::string getService() ();

Returns the service string used to construct the object.

virtual const const char* ReasonText();

Returns a human readable string that describes why the exception was created/thrown.

SEE ALSO

CSocket