#include "indiapi.h"
#include "indidevapi.h"
#include "lilxml.h"
#include <errno.h>
#include <math.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
|
static void | usage (void) |
|
static int | crackSpec (int *acp, char **avp[]) |
|
static void | openINDIServer (FILE **rfpp, FILE **wfpp) |
|
static void | listenINDI (FILE *rfp, FILE *wfp) |
|
static int | finished (void) |
|
static void | onAlarm (int dummy) |
|
static int | readServerChar (FILE *fp) |
|
static void | findSet (XMLEle *root, FILE *fp) |
|
static void | scanEV (SetSpec *specp, char ev[]) |
|
static void | scanEEVV (SetSpec *specp, char *ep, char ev[]) |
|
static void | scanEVEV (SetSpec *specp, char ev[]) |
|
static void | sendNew (FILE *fp, INDIDef *dp, SetSpec *sp) |
|
static void | sendSpecs (FILE *wfp) |
|
int | main (int ac, char *av[]) |
|
static void | scanEEVV (SetSpec *sp, char *v, char *e) |
|
◆ INDIPORT
#define INDIPORT 7624 /* default port */ |
◆ NDEFS
#define NDEFS (sizeof(defs) / sizeof(defs[0])) |
◆ TIMEOUT
#define TIMEOUT 2 /* default timeout, secs */ |
◆ crackSpec()
static int crackSpec |
( |
int * |
acp, |
|
|
char ** |
avp[] |
|
) |
| |
|
static |
◆ findSet()
static void findSet |
( |
XMLEle * |
root, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
◆ finished()
static int finished |
( |
void |
| ) |
|
|
static |
◆ listenINDI()
static void listenINDI |
( |
FILE * |
rfp, |
|
|
FILE * |
wfp |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
ac, |
|
|
char * |
av[] |
|
) |
| |
◆ onAlarm()
static void onAlarm |
( |
int |
dummy | ) |
|
|
static |
◆ openINDIServer()
static void openINDIServer |
( |
FILE ** |
rfpp, |
|
|
FILE ** |
wfpp |
|
) |
| |
|
static |
◆ readServerChar()
static int readServerChar |
( |
FILE * |
fp | ) |
|
|
static |
◆ scanEEVV() [1/2]
static void scanEEVV |
( |
SetSpec * |
specp, |
|
|
char * |
ep, |
|
|
char |
ev[] |
|
) |
| |
|
static |
◆ scanEEVV() [2/2]
static void scanEEVV |
( |
SetSpec * |
sp, |
|
|
char * |
v, |
|
|
char * |
e |
|
) |
| |
|
static |
◆ scanEV()
static void scanEV |
( |
SetSpec * |
specp, |
|
|
char |
ev[] |
|
) |
| |
|
static |
◆ scanEVEV()
static void scanEVEV |
( |
SetSpec * |
specp, |
|
|
char |
ev[] |
|
) |
| |
|
static |
◆ sendNew()
◆ sendSpecs()
static void sendSpecs |
( |
FILE * |
wfp | ) |
|
|
static |
◆ usage()
static void usage |
( |
void |
| ) |
|
|
static |
◆ defs
Initial value:= {
{ "defTextVector", "defText", "newTextVector", "oneText" },
{ "defNumberVector", "defNumber", "newNumberVector", "oneNumber" },
{ "defSwitchVector", "defSwitch", "newSwitchVector", "oneSwitch" },
}
◆ directfd
◆ host
◆ host_def
char host_def[] = "localhost" |
|
static |
◆ lillp
◆ me
◆ nsets
◆ port
◆ rcsid
Initial value: "@(#) $RCSfile: setINDI.c,v $ $Date: 2010/11/07 07:13:59 $ $Revision: 1.6 $ $Name: $" }
static char * rcsid[2]
Definition: setINDIproperty.c:634
◆ sets
◆ timeout
◆ verbose