00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00023 #ifndef _ERIPCCLIENT_H_
00024 #define _ERIPCCLIENT_H_
00025
00026 #include <stdio.h>
00027 #include <stddef.h>
00028 #include <stdlib.h>
00029 #include <string.h>
00030 #include <sys/types.h>
00031 #include <sys/socket.h>
00032 #include <netinet/in.h>
00033 #include <arpa/inet.h>
00034 #include <unistd.h>
00035
00036 #include "eripc.h"
00037
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042
00043 #define TB_MAXCHARONLINE 1024
00044
00045 #define TB_CMD_NAME 128
00046 #define TB_ARGLENGTH 256
00047 #define TB_N_ARG 6
00048
00049 typedef struct
00050 {
00051 char name[TB_CMD_NAME];
00052 int cc;
00053 char arg[TB_N_ARG][TB_ARGLENGTH];
00054 int nArg;
00055 } erIpcCmd_t;
00056
00057 int erIpcSndMessage(erClientChannel_t channel, char *szMsg);
00058
00059 int erIpcSndCommand(erClientChannel_t channel, erIpcCmd_t * cmd);
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064
00065 #endif