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

/home/groups/n/no/noxwizard/cvs/src/network.cpp File Reference

#include "nxwcommn.h"
#include "network.h"
#include "race.h"
#include "commands.h"
#include "packets.h"
#include "basics.h"
#include "menu.h"
#include "addmenu.h"
#include "accounts.h"
#include "party.h"
#include "calendar.h"
#include "dragdrop.h"
#include "speech.h"
#include "data.h"
#include "books.h"
#include "boats.h"
#include "scp_parser.h"
#include "dbl_single_click.h"
#include "trade.h"
#include "sndpkg.h"
#include "walking.h"
#include "rcvpkg.h"
#include "items.h"
#include "chars.h"
#include "range.h"
#include "inlines.h"
#include "skills.h"
#include "nox-wizard.h"
#include "scripts.h"
#include "house.h"
#include "encryption/clientcrypt.h"

Defines

#define PACKET_LEN_DYNAMIC   0x0000
#define PACKET_LEN_NONE   0xffff
#define PACKET_CREATECHARACTER   0x00
#define PACKET_DISCONNECT   0x01
#define PACKET_MOVE_REQUEST   0x02
#define PACKET_TALK_REQUEST   0x03
#define PACKET_ATTACK_REQUEST   0x05
#define PACKET_DOUBLECLICK   0x06
#define PACKET_PICKUPITEM   0x07
#define PACKET_DROPITEM   0x08
#define PACKET_SINGLECLICK   0x09
#define PACKET_REQUESTACTION   0x12
#define PACKET_WEARITEM   0x13
#define PACKET_RESYNC_REQUEST   0x22
#define PACKET_RESURRECT_CHOICE   0x2C
#define PACKET_STATUS_REQUEST   0x34
#define PACKET_SET_SKILL_LOCKS   0x3A
#define PACKET_BUYITEM   0x3B
#define PACKET_CHARACTERSELECT   0x5D
#define PACKET_READBOOK   0x66
#define PACKET_CHANGE_TEXTCOLOR   0x69
#define PACKET_TARGETING   0x6C
#define PACKET_SECURETRADING   0x6F
#define PACKET_MSGBOARD   0x71
#define PACKET_WARMODE_CHANGE   0x72
#define PACKET_PING   0x73
#define PACKET_RENAMECHARACTER   0x75
#define PACKET_DIALOG_RESPONSE   0x7D
#define PACKET_FIRSTLOGINREQUEST   0x80
#define PACKET_DELETECHAR   0x83
#define PACKET_LOGINREQUEST   0x91
#define PACKET_BOOKCHANGE   0x93
#define PACKET_DYEITEM   0x95
#define PACKET_REQUESTHELP   0x9B
#define PACKET_SELLITEM   0x9F
#define PACKET_SELECTSERVER   0xA0
#define PACKET_SPYCLIENT   0xA4
#define PACKET_REQUEST_TIP   0xA7
#define PACKET_GUMP_TEXTENTRY_INPUT   0xAC
#define PACKET_UNICODE_TALKREQUEST   0xAD
#define PACKET_GUMPMENU_SELECT   0xB1
#define PACKET_TIPS_REQUEST   0xB6
#define PACKET_PROFILE_REQUEST   0xB8
#define PACKET_UOMESSENGER   0xBB
#define PACKET_MISC_REQ   0xBF
#define PACKET_CLIENT_VERSION   0xBD

Functions

void charGetPopUpHelp (char *str, P_CHAR pc)
void itemGetPopUpHelp (char *str, P_ITEM pi)
NXWCLIENT getClientFromSocket (NXWSOCKET socket)
void initClients ()
int MTsend (NXWSOCKET socket, char *xoutbuffer, int len, int boh)
TTHREAD startNetThread (void *ptr)

Variables

cNetworkNetwork
int m_packetLen [256]
unsigned int bit_table [257][2]

Define Documentation

#define PACKET_ATTACK_REQUEST   0x05
 

#define PACKET_BOOKCHANGE   0x93
 

#define PACKET_BUYITEM   0x3B
 

#define PACKET_CHANGE_TEXTCOLOR   0x69
 

#define PACKET_CHARACTERSELECT   0x5D
 

#define PACKET_CLIENT_VERSION   0xBD
 

#define PACKET_CREATECHARACTER   0x00
 

#define PACKET_DELETECHAR   0x83
 

#define PACKET_DIALOG_RESPONSE   0x7D
 

#define PACKET_DISCONNECT   0x01
 

#define PACKET_DOUBLECLICK   0x06
 

#define PACKET_DROPITEM   0x08
 

#define PACKET_DYEITEM   0x95
 

#define PACKET_FIRSTLOGINREQUEST   0x80
 

#define PACKET_GUMP_TEXTENTRY_INPUT   0xAC
 

#define PACKET_GUMPMENU_SELECT   0xB1
 

#define PACKET_LEN_DYNAMIC   0x0000
 

#define PACKET_LEN_NONE   0xffff
 

#define PACKET_LOGINREQUEST   0x91
 

#define PACKET_MISC_REQ   0xBF
 

#define PACKET_MOVE_REQUEST   0x02
 

#define PACKET_MSGBOARD   0x71
 

#define PACKET_PICKUPITEM   0x07
 

#define PACKET_PING   0x73
 

#define PACKET_PROFILE_REQUEST   0xB8
 

#define PACKET_READBOOK   0x66
 

#define PACKET_RENAMECHARACTER   0x75
 

#define PACKET_REQUEST_TIP   0xA7
 

#define PACKET_REQUESTACTION   0x12
 

#define PACKET_REQUESTHELP   0x9B
 

#define PACKET_RESURRECT_CHOICE   0x2C
 

#define PACKET_RESYNC_REQUEST   0x22
 

#define PACKET_SECURETRADING   0x6F
 

#define PACKET_SELECTSERVER   0xA0
 

#define PACKET_SELLITEM   0x9F
 

#define PACKET_SET_SKILL_LOCKS   0x3A
 

#define PACKET_SINGLECLICK   0x09
 

#define PACKET_SPYCLIENT   0xA4
 

#define PACKET_STATUS_REQUEST   0x34
 

#define PACKET_TALK_REQUEST   0x03
 

#define PACKET_TARGETING   0x6C
 

#define PACKET_TIPS_REQUEST   0xB6
 

#define PACKET_UNICODE_TALKREQUEST   0xAD
 

#define PACKET_UOMESSENGER   0xBB
 

#define PACKET_WARMODE_CHANGE   0x72
 

#define PACKET_WEARITEM   0x13
 


Function Documentation

void charGetPopUpHelp char *    str,
P_CHAR    pc
 

NXWCLIENT getClientFromSocket NXWSOCKET    socket
 

void initClients   [static]
 

void itemGetPopUpHelp char *    str,
P_ITEM    pi
 

int MTsend NXWSOCKET    socket,
char *    xoutbuffer,
int    len,
int    boh
 

TTHREAD startNetThread void *    ptr [static]
 


Variable Documentation

unsigned int bit_table[257][2] [static]
 

int m_packetLen[256] [static]
 

cNetwork* Network
 

SourceForge.net Logo