LTKCPP-- LLRP Toolkit C Plus Plus Library
Namespaces | Macros
ltkcpp_connection.cpp File Reference

Functions to communicate using LLRP messages over a socket. More...

#include <assert.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <openssl/ssl.h>
#include "ltkcpp_platform.h"
#include "ltkcpp_base.h"
#include "ltkcpp_frame.h"
#include "ltkcpp_connection.h"

Go to the source code of this file.

Namespaces

 LLRP
 

Macros

#define LLRPCLOSESOCKET(X)   close(X)
 
#define LLRP1_TCP_PORT   "5084"
 
#define LLRP1_TLS_PORT   "5085"
 
#define INVALID_SOCKET   (unsigned long)(~0)
 
#define SOCKET_ERROR   (-1)
 

Detailed Description

Functions to communicate using LLRP messages over a socket.

This provides a simple interface to send and receive LLRP messages using a network socket.

This is simplified. It is possible, even likely, that some applications could require much more sophistication. To that end this source file serves as an example to illustrate how framing, encoding, decoding, and response matching are done.

Definition in file ltkcpp_connection.cpp.