#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include "samp.h"
Defines | |
#define | METH_DBG (getenv("METH_DBG")!=NULL||access("/tmp/METH_DBG",F_OK)==0) |
#define | OK_Map samp_getOKMap() |
Functions | |
int | samp_receiveCall (void *data) |
test.echo method | |
int | samp_receiveNotification (void *data) |
receiveNotification () client method. | |
int | samp_receiveResponse (void *data) |
receiveResponse () client method. | |
void | samp_setHandlerReply (Map resp) |
Set the Samp Handler reply map. | |
Map | samp_getHandlerReply () |
Get the Samp Handler reply map. | |
Variables | |
Map | nullMap |
List | nullList |
Samp * | sampP |
handle_t | sampH |
SAMPMETHODS.C -- SAMP methods implemented by a callable client.
Map samp_getHandlerReply | ( | void | ) |
Get the Samp Handler reply map.
SAMP_GETHANDLERREPLY -- Get the Samp Handler reply map.
References nullMap, and OK_Map.
Referenced by samp_receiveCall(), and samp_receiveNotification().
int samp_receiveCall | ( | void * | data | ) |
test.echo method
receiveCall () client method.
SAMP_TESTECHO -- test.echo method
data | caller param data |
data | caller param data |
References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_Reply(), sampH, and Samp::trace.
int samp_receiveNotification | ( | void * | data | ) |
receiveNotification () client method.
SAMP_RECEIVENOTIFICATION -- receiveNotification() client method.
data | caller param data |
References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_processHubEvent(), and Samp::trace.
int samp_receiveResponse | ( | void * | data | ) |
receiveResponse () client method.
SAMP_RECEIVERESPONSE -- receiveResponse() client method.
data | caller param data |
References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), and Samp::trace.
void samp_setHandlerReply | ( | Map | resp | ) |
Set the Samp Handler reply map.
SAMP_SETHANDLERREPLY -- Set the Samp Handler reply map.
resp | response map |
Referenced by samp_envGetHandler(), and samp_paramGetHandler().
SAMP_OK Map struct
Referenced by sampInit().
SAMP handle
Referenced by samp_getHandlerReply(), samp_getOKMap(), samp_hubDeclareSubscriptions(), and sampInit().
handle_t sampH |
SAMP struct pointer
Referenced by samp_processHubEvent(), samp_receiveCall(), and sampInit().