25typedef TCPPKT *PTCPPKT;
34inline PTCPPKT GetTcpPkt(
PIPPKT pIp)
36 if (pIp == NULL) {
return NULL; }
38 return (PTCPPKT)(pIp->
DATA + (((pIp->
bVerHdrLen & 0XF) * 4) - 20));
41inline PTCPPKT GetTcpPkt(
PoolPtr p)
45inline PTCPPKT GetTcpPkt(PEFRAME pFrame)
50inline PTCPPKT GetInitTcpPkt4(
PIPPKT pIp)
53 return (PTCPPKT)pIp->
DATA;
56inline PTCPPKT GetInitTcpPkt4(
PoolPtr p)
66void DumpTcpPacket(
PIPPKT pIP);
68int CoreConnect(
const IPADDR &ipAddress, uint16_t localPort, uint16_t remotePort,
TickTimeout &timeout,
const IPADDR &ifip,
int ifn);
69int NoBlockCoreConnect(
const IPADDR &ipAddress, uint16_t localPort, uint16_t remotePort,
const IPADDR &ifip,
int ifn);
72inline int CoreConnect4(
IPADDR4 ipAddress, uint16_t localPort, uint16_t remotePort,
TickTimeout &timeout,
IPADDR4 ifip,
int ifn)
79 return CoreConnect(ipl, localPort, remotePort, timeout, ipf, ifn);
82inline int NoBlockCoreConnect4(
IPADDR4 ipAddress, uint16_t localPort, uint16_t remotePort,
IPADDR4 ifip,
int ifn)
89 return NoBlockCoreConnect(ipl, localPort, remotePort, ipf, ifn);
93int CoreListen(
const IPADDR &addr, uint16_t port,
int ifn,
const IPADDR &localIpAddress, uint8_t maxpend = 5);
96inline int CoreListen4(
IPADDR4 ipAddress, uint16_t port,
int ifn,
const IPADDR4 localIpAddress, uint8_t maxpend)
102 ipf = localIpAddress;
103 return CoreListen(ipl, port, ifn, ipf, maxpend);
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition nettypes.h:225
bool IsNull() const
Check if the IP address is null.
Definition nettypes.h:279
static IPADDR4 NullIP()
C++ static function for a null IP address.
Definition nettypes.h:363
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition ipv6_addr.h:41
static IPADDR6 NullIP()
Static function to return a null IPADDR6 object.
Timeout helper that converts a relative tick duration into an absolute expiration point.
Definition nbrtos.h:262
PIPPKT GetIpPkt(PoolPtr p)
Get IP packet pointer from network buffer pool buffer.
Definition ip.h:632
void EnableTcpDebug(uint16_t dbFlags)
Enable TCP debug output with specified flags.
void DumpTcpDebug()
Display current TCP debug information to the console.
Internal IPv4 Header Representation.
Definition ip.h:169
uint8_t DATA[]
Flexible array member - payload data follows header (actual length varies by packet)
Definition ip.h:183
uint8_t bVerHdrLen
Version and header length (same as versionNLength in IpHeaderIPv4)
Definition ip.h:170
Main buffer structure for network and serial communication.
Definition buffers.h:90