Logo Search packages:      
Sourcecode: verlihub version File versions

nDirectConnect::cConnDC Class Reference

#include <cconndc.h>

Inheritance diagram for nDirectConnect::cConnDC:

nServer::cAsyncConn nServer::cConnBase cObj

List of all members.


Detailed Description

a direct connect client connection
Author:
Daniel Muller

Definition at line 130 of file cconndc.h.


Public Member Functions

virtual cAsyncConnAccept ()
const string & AddrHost ()
const string & AddrIP ()
const int AddrPort ()
int BufferEmpty ()
 cConnDC (int sd=0, cAsyncSocketServer *server=NULL)
int CheckTimeOut (tTimeOut t, cTime &now)
void ClearLine ()
int ClearTimeOut (tTimeOut)
void Close ()
void CloseNice (int msec=0)
virtual void CloseNice (int msec, int Reason=0)
void CloseNow ()
virtual void CloseNow (int Reason=0)
int Connect (const string &, int)
virtual cMessageParser * CreateParser ()
virtual void DeleteParser (cMessageParser *)
bool DNSLookup ()
bool DNSResolveReverse (const string &ip, string &host)
virtual std::ostream & ErrLog ()
int ErrLog (int level)
virtual string * FactoryString ()
void Flush ()
string * GetLine ()
unsigned int GetLSFlag (unsigned int st)
const unsigned long GetSockAddress ()
int GetSockOpt (int optname, void *optval, int &optlen)
int GetTheoricalClass ()
tConnType GetType ()
virtual const tConnType & getType ()
int LineStatus ()
int ListenOnPort (int port, const char *ia=NULL, bool udp=false)
virtual std::ostream & Log ()
int Log (int level)
std::ostream & LogStream ()
bool NeedsPassword ()
void OnFlushDone ()
virtual int OnTimer (cTime &now)
int OnTimerBase (cTime &now)
virtual operator tSocket () const
int ReadAll ()
int ReadLineLocal ()
void ReSetLSFlag (unsigned int st)
int Send (string &data, bool AddPipe=true, bool Flush=true)
cServerDCServer ()
void SetClassName (const char *name)
void SetLineToRead (string *, char, int max=-1)
void SetLSFlag (unsigned int st)
int SetSockOpt (int optname, const void *optval, int optlen)
int SetTimeOut (tTimeOut, double Sec, cTime &now)
int SetupUDP (const string &, int)
bool SetUser (cUser *usr)
virtual int StrLog (std::ostream &ostr, int level)
virtual int StrLog (ostream &ostr, int level)
int Write (const string &data, bool Flush)

Static Public Member Functions

static unsigned long DNSResolveHost (const string &host)
static int GetCount ()
static const char * IPAsString (unsigned long addr)
static int SendUDPMsg (const string &host, int port, const string &data)

Public Attributes

string mCC
const char * mClassName
int mCloseReason
cConnType * mConnType
int mExtraPoll
unsigned mFeatures
int mGeoZone
tCLIt mIterator
bool mNickListInProgress
cMessageParser * mpMsgParser
cUsermpUser
cRegUserInfomRegInfo
bool mSendNickList
bool mSkipNickList
tSocket mSockDesc
cTime mTimeLastIOAction
std::ostream * mToLog
string mVersion
bool mWritable
cConnFactory * mxAcceptingFactory
cConnFactory * mxMyFactory
cProtocolmxProtocol
cAsyncSocketServermxServer
bool ok

Static Public Attributes

static const string mEmpty
static int msLogLevel = 4
static unsigned long sSocketCounter = 0

Protected Member Functions

tSocket AcceptSock ()
int BindSocket (int sock, int port, const char *addr=NULL)
tSocket CreateSock (bool udp=false)
virtual cConnFactory * GetAcceptingFactory ()
int ListenSock (int sock)
tSocket NonBlockSock (int sock)
int OnCloseNice ()
int SendAll (const char *buf, size_t &len)

Protected Attributes

string mAddrHost
struct sockaddr_in mAddrIN
string mAddrIP
int mAddrPort
string mBufSend
unsigned long mIp
int mLineSize
unsigned mLineSizeMax
unsigned long mMaxBuffer
char mSeparator
int mSRCounter
sTimes mT
cTimeOut mTO [eTO_MAXTO]
tConnType mType

Static Protected Attributes

static char * msBuffer = new char[MAX_MESS_SIZE+1]

Private Attributes

unsigned int mLogStatus
cTime mTimeLastAttempt

Friends

class nProtocol::cDCProto

Classes

struct  sTimes

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

Generated by  Doxygen 1.6.0   Back to index