CeylanNetwork.h File Reference

#include "CeylanException.h"
#include "CeylanTextDisplayable.h"
#include "CeylanTypes.h"
#include <string>
#include <list>

Include dependency graph for CeylanNetwork.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class  Ceylan::Network::NetworkException
 Exception class for network services. More...
class  Ceylan::Network::HostDNSEntry
 Describes the DNS entry corresponding to a specified host. More...

Namespaces

namespace  Ceylan
 This part of the Ceylan namespace gathers some convenient string manipulation facilities to be widely used.
namespace  Ceylan::Network
 Basic network management, which is an optional Ceylan feature.

Typedefs

typedef int Ceylan::Network::SocketError
 The numerical error code that may be returned by specific network primitives, namely Windows socket ones.

Enumerations

enum  Ceylan::Network::NetworkAddressType { Ceylan::Network::IPv4, Ceylan::Network::IPv6 }
 Records the known types of network addresses. More...

Functions

CEYLAN_DLL const std::string Ceylan::Network::getLocalHostName ()
 Returns local host's name, not including the domain name.
CEYLAN_DLL void Ceylan::Network::setLocalHostName (const std::string &newHostName)
 Sets local host's name.
CEYLAN_DLL const std::string Ceylan::Network::getLocalHostDomainName ()
 Returns local host's domain name.
CEYLAN_DLL void Ceylan::Network::setLocalHostDomainName (const std::string &newHostName)
 Sets local host's domain name.
CEYLAN_DLL const std::string Ceylan::Network::getMostPreciseLocalHostName ()
 Returns most precise available local host name.
CEYLAN_DLL const std::string Ceylan::Network::getFQDNFromIP (const IPAddress &ip)
 Returns the fully qualified domain name (FQDN) of specified host.
CEYLAN_DLL const std::string Ceylan::Network::getFQDNFromIPv4 (const std::string &ipString)
 Returns the fully qualified domain name (FQDN) of specified host.
CEYLAN_DLL const std::string Ceylan::Network::getFQDNFromHostname (const std::string &hostname)
 Returns the fully qualified domain name (FQDN) of specified host.
CEYLAN_DLL const std::string Ceylan::Network::getFQDNFromDNSEntry (const HostDNSEntry &entry)
 Returns the fully qualified domain name (FQDN) from specified DNS entry instance.
CEYLAN_DLL bool Ceylan::Network::isAValidHostName (const std::string &hostnameString)
 Returns whether specified string is a valid host name.
CEYLAN_DLL std::string Ceylan::Network::interpretSocketError (SocketError errorCode)
 Returns a string describing the error associated with the specified error code.
CEYLAN_DLL SocketError Ceylan::Network::getSocketError ()
 Returns the latest socket error.
CEYLAN_DLL std::string Ceylan::Network::explainSocketError ()
 Returns the diagnosis string corresponding to latest socket error.


Generated on Thu Jun 4 20:39:45 2009 for Ceylan by  doxygen 1.5.8