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.

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

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_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_getSampHandler(), 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.


Variable Documentation

SAMP_OK Map struct

Referenced by sampInit().

SAMP handle

Referenced by samp_getOKMap(), samp_hubDeclareSubscriptions(), and sampInit().

handle_t sampH


Generated on Wed Aug 31 13:23:14 2011 for SAMP Client Library by  doxygen 1.5.9