Main Page | Class List | File List | Class Members

CServiceDetect Class Reference

#include <servicedetect.h>

List of all members.

Public Member Functions

 CServiceDetect (char *host, int port)
 ~CServiceDetect ()
char * getServiceName ()

Protected Member Functions

int createSocket (char *hostname, int port)


Detailed Description

This is a simple wrapper class which connets to a host and port and attempts to recognise the service upon the other end.

Version:
Id
servicedetect.h,v 1.2 2005/10/08 14:43:23 steve Exp
Author:
Steve Kemp http://www.steve.org.uk/


Constructor & Destructor Documentation

CServiceDetect::CServiceDetect char *  host,
int  port
 

Constructor. Connect to the named host and port and attempt to detect the service running upon the host.

Parameters:
host The hostname to connect to.
port The port to connect to.

CServiceDetect::~CServiceDetect  ) 
 

Destructor.


Member Function Documentation

int CServiceDetect::createSocket char *  hostname,
int  port
[protected]
 

Create a socket connection to the given server and port.

Parameters:
hostname The hostname to connect to.
port The port number to connec tto.
Returns:
The connected socket.

char * CServiceDetect::getServiceName  ) 
 

Get service name.

Returns:
The guessed service name.


The documentation for this class was generated from the following files:
Generated on Tue Oct 25 23:04:38 2005 for fortress by  doxygen 1.4.2