Connection.h File Reference

#include <netinet/in.h>
#include <stdarg.h>
#include "Object.h"
#include "Error.h"
#include "Poller.h"
#include "Signal.h"
#include "String.h"

Include dependency graph for Connection.h:

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

Go to the source code of this file.

Classes

class  Connection

Variables

static const char *const CONNECTION_DEFAULT_INT_NAME = "eth0"
static const unsigned int CONNECTION_SLEEP_TIME = 100000
static const unsigned int CONNECTION_TRIES_NUM_DEFAULT = 3
static const char *const MSG_SOCKET_CANNOT_CREATE = "Cannot create network connection (%s)."
static const char *const MSG_SOCKET_CANNOT_CONNECT = "Cannot open network connection (%s)."
static const char *const MSG_SOCKET_CANNOT_READ = "Cannot read data from network (%s)."
static const char *const MSG_SOCKET_CANNOT_WRITE = "Cannot write data to network (%s)."
static const char *const MSG_SOCKET_CANNOT_CLOSE = "Cannot close network connection (%s)."
static const char *const MSG_SOCKET_CANNOT_SHUTDOWN = "Cannot shutdown network connection (%s)."
static const char *const MSG_SOCKET_UNKNOWN_HOST = "Unknown host name '%s'."
static const char *const MSG_SOCKET_UNKNOWN_SERVICE = "Unknown service name '%s'."
static const char *const MSG_SOCKET_CANNOT_SET_OPTION = "Cannot set socket option (%s)."
static const char *const MSG_SOCKET_CORRUPTED = "Socket corrupted."
static const char *const MSG_SOCKET_CANNOT_GET_INFO = "Cannot get socket information (%s)."
static const char *const MSG_SOCKET_CANNOT_BIND = "Cannot bind socket (%s)."


Variable Documentation

const char* const CONNECTION_DEFAULT_INT_NAME = "eth0" [static]

Definition at line 19 of file Connection.h.

Referenced by Connection::localIp().

const unsigned int CONNECTION_SLEEP_TIME = 100000 [static]

Definition at line 22 of file Connection.h.

Referenced by Connection::read(), and Connection::readLn().

const unsigned int CONNECTION_TRIES_NUM_DEFAULT = 3 [static]

Definition at line 23 of file Connection.h.

const char* const MSG_SOCKET_CANNOT_BIND = "Cannot bind socket (%s)." [static]

Definition at line 37 of file Connection.h.

Referenced by TcpServer::TcpServer(), and UdpServer::UdpServer().

const char* const MSG_SOCKET_CANNOT_CLOSE = "Cannot close network connection (%s)." [static]

Definition at line 30 of file Connection.h.

Referenced by Connection::close(), Connection::localIp(), License::mac(), and TcpServer::~TcpServer().

const char* const MSG_SOCKET_CANNOT_CONNECT = "Cannot open network connection (%s)." [static]

Definition at line 27 of file Connection.h.

Referenced by TcpConnection::connect().

const char* const MSG_SOCKET_CANNOT_CREATE = "Cannot create network connection (%s)." [static]

Definition at line 26 of file Connection.h.

Referenced by Connection::localIp(), License::mac(), TcpConnection::TcpConnection(), TcpServer::TcpServer(), and UdpConnection::UdpConnection().

const char* const MSG_SOCKET_CANNOT_GET_INFO = "Cannot get socket information (%s)." [static]

Definition at line 36 of file Connection.h.

Referenced by Connection::available(), Connection::localIp(), and License::mac().

const char* const MSG_SOCKET_CANNOT_READ = "Cannot read data from network (%s)." [static]

Definition at line 28 of file Connection.h.

Referenced by Connection::read(), Connection::readAvailable(), and Connection::readLn().

const char* const MSG_SOCKET_CANNOT_SET_OPTION = "Cannot set socket option (%s)." [static]

Definition at line 34 of file Connection.h.

Referenced by UdpConnection::setBroadcast(), TcpConnection::setNonBlock(), TcpServer::TcpServer(), and UdpServer::UdpServer().

const char* const MSG_SOCKET_CANNOT_SHUTDOWN = "Cannot shutdown network connection (%s)." [static]

Definition at line 31 of file Connection.h.

Referenced by Connection::shutdown(), and TcpServer::~TcpServer().

const char* const MSG_SOCKET_CANNOT_WRITE = "Cannot write data to network (%s)." [static]

Definition at line 29 of file Connection.h.

Referenced by Telnet::iac(), Connection::write(), Connection::writeLn(), and Connection::writeStr().

const char* const MSG_SOCKET_CORRUPTED = "Socket corrupted." [static]

Definition at line 35 of file Connection.h.

const char* const MSG_SOCKET_UNKNOWN_HOST = "Unknown host name '%s'." [static]

Definition at line 32 of file Connection.h.

Referenced by Connection::setAddress().

const char* const MSG_SOCKET_UNKNOWN_SERVICE = "Unknown service name '%s'." [static]

Definition at line 33 of file Connection.h.

Referenced by Connection::setAddress().


Generated on Thu Sep 6 20:11:36 2007 for Pylon Application Platform by  doxygen 1.5.1