DaZeus  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
dazeus::Server Class Reference

#include <server.h>

Public Member Functions

 Server (const ServerConfig *c, Network *n)
 
 ~Server ()
 
const ServerConfigconfig () const
 
std::string motd () const
 
void addDescriptors (fd_set *in_set, fd_set *out_set, int *maxfd)
 
void processDescriptors (fd_set *in_set, fd_set *out_set)
 
void connectToServer ()
 
void disconnectFromServer (Network::DisconnectReason)
 
void quit (const std::string &reason)
 
void whois (const std::string &destination)
 
void ctcpAction (const std::string &destination, const std::string &message)
 
void ctcpRequest (const std::string &destination, const std::string &message)
 
void join (const std::string &channel, const std::string &key=std::string())
 
void part (const std::string &channel, const std::string &reason=std::string())
 
void message (const std::string &destination, const std::string &message)
 
void names (const std::string &channel)
 
void ping ()
 
void slotNumericMessageReceived (const std::string &origin, unsigned int code, const std::vector< std::string > &params)
 
void slotIrcEvent (const std::string &event, const std::string &origin, const std::vector< std::string > &params)
 
void slotDisconnected ()
 

Static Public Member Functions

static std::string toString (const Server *)
 

Detailed Description

Definition at line 39 of file server.h.

Constructor & Destructor Documentation

dazeus::Server::Server ( const ServerConfig c,
Network n 
)

Definition at line 37 of file server.cpp.

dazeus::Server::~Server ( )

Definition at line 48 of file server.cpp.

Member Function Documentation

void dazeus::Server::addDescriptors ( fd_set *  in_set,
fd_set *  out_set,
int *  maxfd 
)

Definition at line 152 of file server.cpp.

const dazeus::ServerConfig * dazeus::Server::config ( ) const

Definition at line 53 of file server.cpp.

void dazeus::Server::connectToServer ( )

Definition at line 286 of file server.cpp.

void dazeus::Server::ctcpAction ( const std::string &  destination,
const std::string &  message 
)

Definition at line 116 of file server.cpp.

void dazeus::Server::ctcpRequest ( const std::string &  destination,
const std::string &  message 
)

Definition at line 125 of file server.cpp.

void dazeus::Server::disconnectFromServer ( Network::DisconnectReason  reason)

Definition at line 58 of file server.cpp.

void dazeus::Server::join ( const std::string &  channel,
const std::string &  key = std::string() 
)

Definition at line 130 of file server.cpp.

void dazeus::Server::message ( const std::string &  destination,
const std::string &  message 
)

Definition at line 139 of file server.cpp.

std::string dazeus::Server::motd ( ) const

Definition at line 90 of file server.cpp.

void dazeus::Server::names ( const std::string &  channel)

Definition at line 121 of file server.cpp.

void dazeus::Server::part ( const std::string &  channel,
const std::string &  reason = std::string() 
)

Definition at line 134 of file server.cpp.

void dazeus::Server::ping ( )

Definition at line 148 of file server.cpp.

void dazeus::Server::processDescriptors ( fd_set *  in_set,
fd_set *  out_set 
)

Definition at line 156 of file server.cpp.

void dazeus::Server::quit ( const std::string &  reason)

Definition at line 96 of file server.cpp.

void dazeus::Server::slotDisconnected ( )

Definition at line 225 of file server.cpp.

void dazeus::Server::slotIrcEvent ( const std::string &  event,
const std::string &  origin,
const std::vector< std::string > &  params 
)

Definition at line 230 of file server.cpp.

void dazeus::Server::slotNumericMessageReceived ( const std::string &  origin,
unsigned int  code,
const std::vector< std::string > &  params 
)

Definition at line 160 of file server.cpp.

std::string dazeus::Server::toString ( const Server s)
static

Definition at line 22 of file server.cpp.

void dazeus::Server::whois ( const std::string &  destination)

Definition at line 100 of file server.cpp.


The documentation for this class was generated from the following files: