Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit b4d3565

Browse files
author
me-no-dev
committed
add method to get tcp MSS
1 parent 34d116f commit b4d3565

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/ESPAsyncTCP.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,12 @@ bool AsyncClient::getNoDelay(){
536536
return tcp_nagle_disabled(_pcb);
537537
}
538538

539+
uint16_t AsyncClient::getMss(){
540+
if(_pcb)
541+
return tcp_mss(_pcb);
542+
return 0;
543+
}
544+
539545
uint32_t AsyncClient::getRemoteAddress() {
540546
if(!_pcb)
541547
return 0;

src/ESPAsyncTCP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ class AsyncClient {
153153
bool disconnected();
154154
bool freeable();//disconnected or disconnecting
155155

156+
uint16_t getMss();
156157
uint32_t getRxTimeout();
157158
void setRxTimeout(uint32_t timeout);//no RX data timeout for the connection in seconds
158159
uint32_t getAckTimeout();

0 commit comments

Comments
 (0)