#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.
Defines | |
#define | PRINT_ASCII 2 |
#define | PRINT_HEX 1 |
#define | SOCKET_OPEN_FAILED -1 |
Functions | |
void | get_extensions (int sock, int command, int res) |
static int | initOpts (int argc, char *argv[]) |
int | main (int argc, char *argv[]) |
static int | openSocket (void) |
void | print_result (int sock, int rv, cmdCmd_t cmd) |
void | report (int err, char *fmt,...) |
Variables | |
char | command_buf [CMD_MAX_EXTENSION] |
int | printFlags = 0 |
char | response_buf [CMD_MAX_EXTENSION] |
int | status = PIGS_OK |
#define PRINT_ASCII 2 |
#define SOCKET_OPEN_FAILED -1 |
void get_extensions | ( | int | sock, |
int | command, | ||
int | res | ||
) |
static int openSocket | ( | void | ) | [static] |
void print_result | ( | int | sock, |
int | rv, | ||
cmdCmd_t | cmd | ||
) |
char command_buf[CMD_MAX_EXTENSION] |
int printFlags = 0 |