OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
main.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/capability.h>
#include "generic_networkhandler.h"
#include "opener_api.h"
#include "cipcommon.h"
#include "trace.h"
#include "networkconfig.h"
#include "doublylinkedlist.h"
#include "cipconnectionobject.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

void * executeEventLoop ()
 Signal handler function for ending stack execution. More...
 
void LeaveStack (int signal)
 Signal handler function for ending stack execution. More...
 
int main (int argc, char *arg[])
 

Variables

int g_end_stack = 0
 Flag indicating if the stack should end its execution. More...
 

Function Documentation

void * executeEventLoop ( )

Signal handler function for ending stack execution.

Parameters
signalthe signal we received

Definition at line 192 of file main.c.

References g_end_stack, kEipStatusOk, NetworkHandlerProcessOnce(), and OPENER_TRACE_ERR.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LeaveStack ( int  signal)

Signal handler function for ending stack execution.

Parameters
signalthe signal we received

Definition at line 186 of file main.c.

References g_end_stack, and OPENER_TRACE_STATE.

int main ( int  argc,
char *  arg[] 
)

Variable Documentation

int g_end_stack = 0

Flag indicating if the stack should end its execution.

Definition at line 44 of file main.c.