#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "pigpio.h"
#include "command.h"
#include "pigs.h"
Go to the source code of this file.
#define SOCKET_OPEN_FAILED -1 |
void get_extensions |
( |
int |
sock, |
|
|
int |
command, |
|
|
int |
res |
|
) |
| |
static int initOpts |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static int openSocket |
( |
void |
| ) |
|
|
static |
void print_result |
( |
int |
sock, |
|
|
int |
rv, |
|
|
cmdCmd_t |
cmd |
|
) |
| |
void report |
( |
int |
err, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |