Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
Tcp.h File Reference

General-purpose TCP socket abstraction with optional TLS support for both client and server use. More...

#include <FreeRTOS.h>
#include <queue.h>
#include <string>
#include <vector>
#include <cstdint>
#include <lwip/ip_addr.h>
#include <lwip/sockets.h>
+ Include dependency graph for Tcp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Tcp
 General-purpose TCP socket wrapper with optional TLS support via mbedTLS (altcp). More...
 

Enumerations

enum class  SocketEvent : uint8_t { Connect = 0 , Recv = 1 , Sent = 2 , Error = 3 }
 
enum  NotifyIndex { NotifyRecv = 0 , NotifyAccept = 1 , NotifyConnect = 2 }
 

Detailed Description

Author
Ian Archbell
Date
2023-03-15
License:\n MIT License

Definition in file Tcp.h.

Enumeration Type Documentation

◆ NotifyIndex

Enumerator
NotifyRecv 
NotifyAccept 
NotifyConnect 

Definition at line 30 of file Tcp.h.

30 {
31 NotifyRecv = 0,
32 NotifyAccept = 1,
33 NotifyConnect = 2,
34};
@ NotifyAccept
Definition Tcp.h:32
@ NotifyConnect
Definition Tcp.h:33
@ NotifyRecv
Definition Tcp.h:31

◆ SocketEvent

enum class SocketEvent : uint8_t
strong
Enumerator
Connect 
Recv 
Sent 
Error 

Definition at line 23 of file Tcp.h.

23 : uint8_t {
24 Connect = 0,
25 Recv = 1,
26 Sent = 2,
27 Error = 3
28};