Skip to content

Commit aace1a9

Browse files
committed
ClientContext: rename functions *_sent to *_acked (:sent to :ack in debug)
1 parent 169e60b commit aace1a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/ESP8266WiFi/src/include/ClientContext.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ClientContext
4040
tcp_setprio(pcb, TCP_PRIO_MIN);
4141
tcp_arg(pcb, this);
4242
tcp_recv(pcb, &_s_recv);
43-
tcp_sent(pcb, &_s_sent);
43+
tcp_sent(pcb, &_s_acked);
4444
tcp_err(pcb, &_s_error);
4545
tcp_poll(pcb, &_s_poll, 1);
4646

@@ -471,11 +471,11 @@ class ClientContext
471471
}
472472
}
473473

474-
err_t _sent(tcp_pcb* pcb, uint16_t len)
474+
err_t _acked(tcp_pcb* pcb, uint16_t len)
475475
{
476476
(void) pcb;
477477
(void) len;
478-
DEBUGV(":sent %d\r\n", len);
478+
DEBUGV(":ack %d\r\n", len);
479479
_write_some_from_cb();
480480
return ERR_OK;
481481
}
@@ -571,9 +571,9 @@ class ClientContext
571571
return reinterpret_cast<ClientContext*>(arg)->_poll(tpcb);
572572
}
573573

574-
static err_t _s_sent(void *arg, struct tcp_pcb *tpcb, uint16_t len)
574+
static err_t _s_acked(void *arg, struct tcp_pcb *tpcb, uint16_t len)
575575
{
576-
return reinterpret_cast<ClientContext*>(arg)->_sent(tpcb, len);
576+
return reinterpret_cast<ClientContext*>(arg)->_acked(tpcb, len);
577577
}
578578

579579
static err_t _s_connected(void* arg, struct tcp_pcb *pcb, err_t err)

0 commit comments

Comments
 (0)