Prusa MINI Firmware overview
connection.hpp File Reference
#include "lwip/tcp.h"
#include "lwsapi_app.hpp"

Go to the source code of this file.

Classes

class  Context
 Internal connection structure which is used in LwIP tcp_ callbacks as arg. More...
 

Macros

#define CRLF   "\r\n"
 
#define MINIMAL_REQUEST_LENGTH   14
 
#define memshift(ptr, size)   (reinterpret_cast<const void *>(reinterpret_cast<size_t>(ptr) + size))
 
#define chrshift(ptr, size)   (reinterpret_cast<const char *>(reinterpret_cast<size_t>(ptr) + size))
 
#define memlen(start, end)   (reinterpret_cast<size_t>(end) - reinterpret_cast<size_t>(start) + 1)
 return lenght of data from start to end More...
 

Macro Definition Documentation

◆ CRLF

#define CRLF   "\r\n"

◆ MINIMAL_REQUEST_LENGTH

#define MINIMAL_REQUEST_LENGTH   14

◆ memshift

#define memshift (   ptr,
  size 
)    (reinterpret_cast<const void *>(reinterpret_cast<size_t>(ptr) + size))

◆ chrshift

#define chrshift (   ptr,
  size 
)    (reinterpret_cast<const char *>(reinterpret_cast<size_t>(ptr) + size))

◆ memlen

#define memlen (   start,
  end 
)    (reinterpret_cast<size_t>(end) - reinterpret_cast<size_t>(start) + 1)

return lenght of data from start to end