YARP  2.3.70.1
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 UDP_MAX_DATAGRAM_SIZE   65507 - 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.

◆ UDP_MAX_DATAGRAM_SIZE

#define UDP_MAX_DATAGRAM_SIZE   65507 - CRC_SIZE

Definition at line 41 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 69 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 44 of file DgramTwoWayStream.cpp.