YARP
Yet Another Robot Platform
DgramTwoWayStream.cpp File Reference
#include <yarp/os/impl/DgramTwoWayStream.h>
#include <yarp/conf/system.h>
#include <yarp/conf/environment.h>
#include <yarp/os/NetType.h>
#include <yarp/os/Time.h>
#include <yarp/os/impl/LogComponent.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.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 UDP_MAX_DATAGRAM_SIZE   (65507 - CRC_SIZE)
 

Functions

static bool checkCrc (char *buf, yarp::conf::ssize_t length, yarp::conf::ssize_t crcLength, int pct, int *store_altPct=nullptr)
 
static void addCrc (char *buf, yarp::conf::ssize_t length, yarp::conf::ssize_t crcLength, int pct)
 

Macro Definition Documentation

◆ CRC_SIZE

#define CRC_SIZE   8

Definition at line 47 of file DgramTwoWayStream.cpp.

◆ UDP_MAX_DATAGRAM_SIZE

#define UDP_MAX_DATAGRAM_SIZE   (65507 - CRC_SIZE)

Definition at line 48 of file DgramTwoWayStream.cpp.

Function Documentation

◆ addCrc()

static void addCrc ( char *  buf,
yarp::conf::ssize_t  length,
yarp::conf::ssize_t  crcLength,
int  pct 
)
static

Definition at line 81 of file DgramTwoWayStream.cpp.

◆ checkCrc()

static bool checkCrc ( char *  buf,
yarp::conf::ssize_t  length,
yarp::conf::ssize_t  crcLength,
int  pct,
int *  store_altPct = nullptr 
)
static

Definition at line 56 of file DgramTwoWayStream.cpp.