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

Commit 3795e16

Browse files
xoseperezme-no-dev
authored andcommitted
Fix compilation errors when ASYNC_TCP_SSL_ENABLED (#58)
1 parent 036ea44 commit 3795e16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ESPAsyncTCP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ long AsyncServer::_accept(tcp_pcb* pcb, long err){
969969
}
970970

971971
#if ASYNC_TCP_SSL_ENABLED
972-
int8_t AsyncServer::_poll(tcp_pcb* pcb){
972+
long AsyncServer::_poll(tcp_pcb* pcb){
973973
if(!tcp_ssl_has_client() && _pending){
974974
struct pending_pcb * p = _pending;
975975
if(p->pcb == pcb){
@@ -995,7 +995,7 @@ int8_t AsyncServer::_poll(tcp_pcb* pcb){
995995
return ERR_OK;
996996
}
997997

998-
int8_t AsyncServer::_recv(struct tcp_pcb *pcb, struct pbuf *pb, int8_t err){
998+
long AsyncServer::_recv(struct tcp_pcb *pcb, struct pbuf *pb, long err){
999999
if(!_pending)
10001000
return ERR_OK;
10011001

@@ -1047,11 +1047,11 @@ int AsyncServer::_s_cert(void *arg, const char *filename, uint8_t **buf){
10471047
return reinterpret_cast<AsyncServer*>(arg)->_cert(filename, buf);
10481048
}
10491049

1050-
int8_t AsyncServer::_s_poll(void *arg, struct tcp_pcb *pcb){
1050+
long AsyncServer::_s_poll(void *arg, struct tcp_pcb *pcb){
10511051
return reinterpret_cast<AsyncServer*>(arg)->_poll(pcb);
10521052
}
10531053

1054-
int8_t AsyncServer::_s_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb, int8_t err){
1054+
long AsyncServer::_s_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb, long err){
10551055
return reinterpret_cast<AsyncServer*>(arg)->_recv(pcb, pb, err);
10561056
}
10571057
#endif

0 commit comments

Comments
 (0)