CliXoN
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
netconf_main.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <time.h>
#include <syslog.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include <libgen.h>
#include <cligen/cligen.h>
#include <clixon/clixon.h>
#include "clixon_netconf.h"
#include "netconf_lib.h"
#include "netconf_hello.h"
#include "netconf_plugin.h"
#include "netconf_rpc.h"

Macros

#define NETCONF_OPTS   "hDqf:d:Sy:"
 

Functions

static int process_incoming_packet (clicon_handle h, cbuf *cb)
 
static int netconf_input_cb (int s, void *arg)
 
static int send_hello (int s)
 
static int netconf_terminate (clicon_handle h)
 
static void usage (clicon_handle h, char *argv0)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define NETCONF_OPTS   "hDqf:d:Sy:"

Function Documentation

int main ( int  argc,
char **  argv 
)
static int netconf_input_cb ( int  s,
void *  arg 
)
static

Get netconf message: detect end-of-msg

Parameters
[in]sSocket where input arrived. read from this.
[in]argClicon handle.
static int netconf_terminate ( clicon_handle  h)
static
static int process_incoming_packet ( clicon_handle  h,
cbuf *  cb 
)
static

Process incoming packet

Parameters
[in]hClicon handle
[in]cbPacket buffer
static int send_hello ( int  s)
static
static void usage ( clicon_handle  h,
char *  argv0 
)
static

Usage help routine

Parameters
[in]hClicon handle
[in]argv0command line