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

Commit

Permalink
Fix compilation errors when ASYNC_TCP_SSL_ENABLED (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez authored and me-no-dev committed Oct 24, 2017
1 parent 036ea44 commit 3795e16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ESPAsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ long AsyncServer::_accept(tcp_pcb* pcb, long err){
}

#if ASYNC_TCP_SSL_ENABLED
int8_t AsyncServer::_poll(tcp_pcb* pcb){
long AsyncServer::_poll(tcp_pcb* pcb){
if(!tcp_ssl_has_client() && _pending){
struct pending_pcb * p = _pending;
if(p->pcb == pcb){
Expand All @@ -995,7 +995,7 @@ int8_t AsyncServer::_poll(tcp_pcb* pcb){
return ERR_OK;
}

int8_t AsyncServer::_recv(struct tcp_pcb *pcb, struct pbuf *pb, int8_t err){
long AsyncServer::_recv(struct tcp_pcb *pcb, struct pbuf *pb, long err){
if(!_pending)
return ERR_OK;

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

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

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

1 comment on commit 3795e16

@rick-bp
Copy link

@rick-bp rick-bp commented on 3795e16 Nov 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.