iCub-main
Classes | Macros | Functions | Variables
main.cpp File Reference
#include "stdint.h"
#include "stdlib.h"
#include "stdio.h"
#include <string>
#include <signal.h>
#include <iostream>
#include <ace/ACE.h>
#include "ace/SOCK_Dgram.h"
#include "ace/Addr.h"
#include "ace/Thread.h"
#include "ace/Logging_Strategy.h"
#include "template_buttons.hpp"
#include "OPCprotocolManager.h"
#include "OPCprotocolManager_Cfg.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  hostAddr_t
 

Macros

#define DEFAULT_LOCAL_IP   "10.0.1.104"
 
#define DEFAULT_PORT   4444
 
#define PAYLOAD_MAX_SIZE   128
 

Functions

static void sighandler (int _signum)
 
void usage (void)
 
void * recvThread (void *arg)
 
opcprotman_cfg_t * get_OPCprotocolManager_cfg (void)
 
static void s_check_seqNum (ACE_INET_Addr src_addr, uint32_t recseqnum)
 
int main (int argc, char *argv[])
 

Variables

OPCprotocolManager * opcMan_ptr = NULL
 
ACE_SOCK_Dgram * ACE_socket
 
int keepGoingOn = 1
 
uint8_t board = 0
 
static uint32_t seqnumList [10] = {0}
 
static uint8_t isfirstList [10] = {0}
 

Macro Definition Documentation

◆ DEFAULT_LOCAL_IP

#define DEFAULT_LOCAL_IP   "10.0.1.104"

Definition at line 80 of file main.cpp.

◆ DEFAULT_PORT

#define DEFAULT_PORT   4444

Definition at line 81 of file main.cpp.

◆ PAYLOAD_MAX_SIZE

#define PAYLOAD_MAX_SIZE   128

Definition at line 82 of file main.cpp.

Function Documentation

◆ get_OPCprotocolManager_cfg()

opcprotman_cfg_t* get_OPCprotocolManager_cfg ( void  )

◆ main()

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

Definition at line 138 of file main.cpp.

◆ recvThread()

void * recvThread ( void *  arg)

Definition at line 359 of file main.cpp.

◆ s_check_seqNum()

static void s_check_seqNum ( ACE_INET_Addr  src_addr,
uint32_t  recseqnum 
)
static

Definition at line 415 of file main.cpp.

◆ sighandler()

static void sighandler ( int  _signum)
static

Definition at line 130 of file main.cpp.

◆ usage()

void usage ( void  )

Definition at line 405 of file main.cpp.

Variable Documentation

◆ ACE_socket

ACE_SOCK_Dgram* ACE_socket

Definition at line 121 of file main.cpp.

◆ board

uint8_t board = 0

Definition at line 123 of file main.cpp.

◆ isfirstList

uint8_t isfirstList[10] = {0}
static

Definition at line 414 of file main.cpp.

◆ keepGoingOn

int keepGoingOn = 1

Definition at line 122 of file main.cpp.

◆ opcMan_ptr

OPCprotocolManager* opcMan_ptr = NULL

Definition at line 88 of file main.cpp.

◆ seqnumList

uint32_t seqnumList[10] = {0}
static

Definition at line 413 of file main.cpp.