Samp Struct Reference

#include <samp.h>


Data Fields

char appName [SZ_NAME]
char appVer [SZ_LINE]
char description [SZ_NAME]
char errortxt [SZ_LINE]
appMD meta
pthread_t svrThread
int(* defaultUserFunc )(char *sender, char *msgid, Map map)
Subs subs [MAX_SUBS]
int nsubs
Client clients [MAX_CLIENTS]
int nclients
int serverTid
int serverPort
Hubhub
handle_t hubHandle
int hubThreadID
int active
int mapClients
int msgMode
int handlerMode
FILE * logfd
int debug
int verbose
int trace


Detailed Description

SAMP application description. By default this describes our app by may be used to store information about other apps in the network as well.

Field Documentation

Hub thread id

Referenced by samp_hubActive(), sampShutdown(), and sampStartup().

application name

Referenced by samp_hubOpen(), samp_Metadata(), and samp_setAppVersion().

int(* Samp::defaultUserFunc)(char *sender, char *msgid, Map map) ( char *  sender,
char *  msgid,
Map  map 
)

application version

Referenced by samp_getMetadata(), samp_hubOpen(), samp_Metadata(), and samp_printMetadata().

handle_t Samp::hubHandle

Hub connection

Referenced by sampClose(), sampShutdown(), and sampStartup().

Hub handle alias

FILE * Samp::logfd

CBR / CBV for user handlers

Referenced by sampLog().

is interface active

Referenced by sampStartup().

last msh error string

Referenced by samp_getMetadata(), samp_Metadata(), and samp_printMetadata().

samp server threadId

number of samp clients

pthread_t Samp::svrThread

metadata

Referenced by sampShutdown().


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

Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  doxygen 1.5.9