PadicoTM

Documentation

« back to PM2 home.
vrp-test.c File Reference
#include <Padico/VRP.h>
#include <Padico/Puk.h>
#include <Padico/NetAccess.h>
#include <Padico/Module.h>
Include dependency graph for vrp-test.c:

Go to the source code of this file.

Functions

int vrp_test_init (void)
 
int vrp_test_run (int argc, char **argv)
 
void vrp_test_finalize (void)
 
static void padico_module_create_initializer__vrp_test (void)
 
static void vrp_test_incoming_handler (vrp_in_buffer_t in_buffer)
 

Variables

struct puk_mod_binary_s padico_mod_binary__vrp_test = { .name = "vrp_test", .funcs = &padico_mod_funcs__vrp_test , .mod = NULL, .profile = { .total_mem = 0, .max_mem = 0, .num_malloc = 0, .num_free = 0 } , .auto_deps = & puk_mod_dep_0 , .n_deps = sizeof((char*[]){ 0, }) / sizeof(char*), .deps = { NULL, } }
 
static const struct puk_mod_funcs_s padico_mod_funcs__vrp_test = { .init = ( vrp_test_init ), .run = ( vrp_test_run ), .finalize = ( vrp_test_finalize ) }
 
static int port = 4579
 
static int i_am_server = 0
 
static vrp_incoming_t incoming
 
static vrp_outgoing_t outgoing
 

Function Documentation

◆ padico_module_create_initializer__vrp_test()

static void padico_module_create_initializer__vrp_test ( void  )
static

Definition at line 13 of file vrp-test.c.

◆ vrp_test_finalize()

void vrp_test_finalize ( void  )

Definition at line 87 of file vrp-test.c.

References i_am_server, incoming, outgoing, vrp_incoming_close(), and vrp_outgoing_close().

◆ vrp_test_incoming_handler()

◆ vrp_test_init()

◆ vrp_test_run()

int vrp_test_run ( int  argc,
char **  argv 
)

Variable Documentation

◆ i_am_server

int i_am_server = 0
static

Definition at line 16 of file vrp-test.c.

Referenced by vrp_test_finalize(), vrp_test_init(), and vrp_test_run().

◆ incoming

◆ outgoing

◆ padico_mod_binary__vrp_test

struct puk_mod_binary_s padico_mod_binary__vrp_test = { .name = "vrp_test", .funcs = &padico_mod_funcs__vrp_test , .mod = NULL, .profile = { .total_mem = 0, .max_mem = 0, .num_malloc = 0, .num_free = 0 } , .auto_deps = & puk_mod_dep_0 , .n_deps = sizeof((char*[]){ 0, }) / sizeof(char*), .deps = { NULL, } }

Definition at line 13 of file vrp-test.c.

◆ padico_mod_funcs__vrp_test

const struct puk_mod_funcs_s padico_mod_funcs__vrp_test = { .init = ( vrp_test_init ), .run = ( vrp_test_run ), .finalize = ( vrp_test_finalize ) }
static

Definition at line 13 of file vrp-test.c.

◆ port