src/server/lxi-control.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/file.h>

Include dependency graph for lxi-control.c:

Go to the source code of this file.

Defines

#define APP_VERSION   "1.0.0"
#define NET_NODELAY   1
#define NET_TIMEOUT   4
#define NET_MAX_NODES   256
#define ERR   -1
#define NET_MAX_BUF   1500
#define BROADCAST_ADDR   "255.255.255.255"
#define BROADCAST_PORT   111
#define INFO(format, args...)   fprintf (stdout, "" format, ## args)
#define ERROR(format, args...)   fprintf (stderr, "Error: " format, ## args)
#define MODE_NORMAL   0
#define MODE_DISCOVERY   1

Functions

void print_help (void)
int lxi_control (int argc, char *argv[])

Variables

char rpc_GETPORT_msg []


Define Documentation

#define APP_VERSION   "1.0.0"

Definition at line 40 of file lxi-control.c.

#define BROADCAST_ADDR   "255.255.255.255"

Definition at line 46 of file lxi-control.c.

#define BROADCAST_PORT   111

Definition at line 47 of file lxi-control.c.

#define ERR   -1

Definition at line 44 of file lxi-control.c.

#define ERROR ( format,
args...   )     fprintf (stderr, "Error: " format, ## args)

Definition at line 53 of file lxi-control.c.

#define INFO ( format,
args...   )     fprintf (stdout, "" format, ## args)

Definition at line 50 of file lxi-control.c.

#define MODE_DISCOVERY   1

Definition at line 57 of file lxi-control.c.

#define MODE_NORMAL   0

Definition at line 56 of file lxi-control.c.

#define NET_MAX_BUF   1500

Definition at line 45 of file lxi-control.c.

#define NET_MAX_NODES   256

Definition at line 43 of file lxi-control.c.

#define NET_NODELAY   1

Definition at line 41 of file lxi-control.c.

#define NET_TIMEOUT   4

Definition at line 42 of file lxi-control.c.


Function Documentation

int lxi_control ( int  argc,
char *  argv[] 
)

Definition at line 409 of file lxi-control.c.

void print_help ( void   ) 

Definition at line 88 of file lxi-control.c.


Variable Documentation

char* command

Definition at line 63 of file lxi-control.c.

char* ip

Definition at line 61 of file lxi-control.c.

int mode

Definition at line 65 of file lxi-control.c.

unsigned int port

Definition at line 62 of file lxi-control.c.

Initial value:

 {
0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x00, 0x00, 
0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x86, 0xa0, 
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
0x00, 0x06, 0x07, 0xaf, 0x00, 0x00, 0x00, 0x01, 
0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00 }

Definition at line 77 of file lxi-control.c.

int socket

Definition at line 64 of file lxi-control.c.

int timeout

Definition at line 66 of file lxi-control.c.


Generated on Mon Jan 10 22:33:43 2011 by  doxygen 1.5.6