Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cNetwork Class Reference

#include <network.h>

List of all members.

Public Methods

 cNetwork ()
void enterchar (int s)
void startchar (int s)
void LoginMain (int s)
void xSend (NXWSOCKET socket, const void *point, int length)
void xSend (NXWSOCKET socket, wstring &p, bool alsoTermination=true)
void Disconnect (NXWSOCKET s)
void ClearBuffers ()
void CheckConn ()
void CheckMessage ()
void SockClose ()
void FlushBuffer (NXWSOCKET s)
void LoadHosts_deny (void)
bool CheckForBlockedIP (sockaddr_in ip_address)

Public Attributes

int kr
int faul

Private Methods

void DoStreamCode (NXWSOCKET s)
int Pack (void *pvIn, void *pvOut, int len)
void Login2 (int s)
void Relay (int s)
void GoodAuth (int s)
void charplay (int s)
void CharList (int s)
int Receive (int s, int x, int a)
 Receive data from a socket.

void GetMsg (int s)
char LogOut (NXWSOCKET s)
void pSplit (char *pass0)
void sockInit ()
void ActivateFeatures (NXWSOCKET s)
unsigned char calculateLoginKey (unsigned char loginKey[4], unsigned char packetId)

Private Attributes

std::vector< ip_block_sthosts_deny


Constructor & Destructor Documentation

cNetwork::cNetwork  
 


Member Function Documentation

void cNetwork::ActivateFeatures NXWSOCKET    s [private]
 

unsigned char cNetwork::calculateLoginKey unsigned char    loginKey[4],
unsigned char    packetId
[private]
 

void cNetwork::CharList int    s [private]
 

void cNetwork::charplay int    s [private]
 

void cNetwork::CheckConn  
 

bool cNetwork::CheckForBlockedIP sockaddr_in    ip_address
 

void cNetwork::CheckMessage  
 

void cNetwork::ClearBuffers  
 

void cNetwork::Disconnect NXWSOCKET    s
 

void cNetwork::DoStreamCode NXWSOCKET    s [private]
 

void cNetwork::enterchar int    s
 

void cNetwork::FlushBuffer NXWSOCKET    s
 

void cNetwork::GetMsg int    s [private]
 

void cNetwork::GoodAuth int    s [private]
 

void cNetwork::LoadHosts_deny void   
 

void cNetwork::Login2 int    s [private]
 

void cNetwork::LoginMain int    s
 

char cNetwork::LogOut NXWSOCKET    s [private]
 

int cNetwork::Pack void *    pvIn,
void *    pvOut,
int    len
[private]
 

void cNetwork::pSplit char *    pass0 [private]
 

int cNetwork::Receive int    s,
int    x,
int    a
[private]
 

Receive data from a socket.

Parameters:
s  the socket to receive from
x  the numero of bytes to receive
a  the buffer offset
Returns:
the number of actually read bytes

void cNetwork::Relay int    s [private]
 

void cNetwork::SockClose  
 

void cNetwork::sockInit   [private]
 

void cNetwork::startchar int    s
 

void cNetwork::xSend NXWSOCKET    socket,
wstring &    p,
bool    alsoTermination = true
 

void cNetwork::xSend NXWSOCKET    socket,
const void *    point,
int    length
 


Member Data Documentation

int cNetwork::faul
 

std::vector<ip_block_st> cNetwork::hosts_deny [private]
 

int cNetwork::kr
 


The documentation for this class was generated from the following files: SourceForge.net Logo