sampMethods.c File Reference

SAMP methods implemented by a callable client. More...

#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
SampsampP
handle_t sampH


Detailed Description

SAMP methods implemented by a callable client.

SAMPMETHODS.C -- SAMP methods implemented by a callable client.

Author:
Mike Fitzpatrick
Date:
7/10/09

Function Documentation

Map samp_getHandlerReply ( void   ) 

Get the Samp Handler reply map.

SAMP_GETHANDLERREPLY -- Get the Samp Handler reply map.

Returns:
Map handle for 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

Parameters:
data caller param data
Returns:
status code or errno
SAMP_RECEIVECALL -- receiveCall() client method.

Parameters:
data caller param data
Returns:
status code or errno

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.

Parameters:
data caller param data
Returns:
status code or errno

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.

Parameters:
data caller param data
Returns:
status code or errno

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.

Parameters:
resp response map
Returns:
nothing

Referenced by samp_envGetHandler(), and samp_paramGetHandler().


Variable Documentation

SAMP_OK Map struct

Referenced by sampInit().

handle_t sampH

SAMP struct pointer

Referenced by samp_processHubEvent(), samp_receiveCall(), and sampInit().


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