YARP  2.3.70
Yet Another Robot Platform
DgramTwoWayStream.cpp File Reference
#include <yarp/conf/system.h>
#include <yarp/os/impl/DgramTwoWayStream.h>
#include <yarp/os/impl/Logger.h>
#include <yarp/os/Time.h>
#include <yarp/os/NetType.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
+ Include dependency graph for DgramTwoWayStream.cpp:

Go to the source code of this file.

Macros

#define CRC_SIZE   8
 
#define READ_SIZE   (120000-CRC_SIZE)
 
#define WRITE_SIZE   (60000-CRC_SIZE)
 

Functions

static bool checkCrc (char *buf, YARP_SSIZE_T length, YARP_SSIZE_T crcLength, int pct, int *store_altPct=YARP_NULLPTR)
 
static void addCrc (char *buf, YARP_SSIZE_T length, YARP_SSIZE_T crcLength, int pct)
 

Macro Definition Documentation

◆ CRC_SIZE

#define CRC_SIZE   8

Definition at line 40 of file DgramTwoWayStream.cpp.

◆ READ_SIZE

#define READ_SIZE   (120000-CRC_SIZE)

Definition at line 41 of file DgramTwoWayStream.cpp.

◆ WRITE_SIZE

#define WRITE_SIZE   (60000-CRC_SIZE)

Definition at line 42 of file DgramTwoWayStream.cpp.

Function Documentation

◆ addCrc()

static void addCrc ( char *  buf,
YARP_SSIZE_T  length,
YARP_SSIZE_T  crcLength,
int  pct 
)
static

Definition at line 70 of file DgramTwoWayStream.cpp.

◆ checkCrc()

static bool checkCrc ( char *  buf,
YARP_SSIZE_T  length,
YARP_SSIZE_T  crcLength,
int  pct,
int *  store_altPct = YARP_NULLPTR 
)
static

Definition at line 45 of file DgramTwoWayStream.cpp.