@@ -281,7 +281,7 @@ size_t AsyncClient::ack(size_t len){
281
281
282
282
// Private Callbacks
283
283
284
- int8_t AsyncClient::_connected (void * pcb, int8_t err){
284
+ long AsyncClient::_connected (void * pcb, long err){
285
285
_pcb = reinterpret_cast <tcp_pcb*>(pcb);
286
286
if (_pcb){
287
287
_pcb_busy = false ;
@@ -334,7 +334,7 @@ int8_t AsyncClient::_close(){
334
334
return err;
335
335
}
336
336
337
- void AsyncClient::_error (int8_t err) {
337
+ void AsyncClient::_error (long err) {
338
338
if (_pcb){
339
339
#if ASYNC_TCP_SSL_ENABLED
340
340
if (_pcb_secure){
@@ -361,7 +361,7 @@ void AsyncClient::_ssl_error(int8_t err){
361
361
}
362
362
#endif
363
363
364
- int8_t AsyncClient::_sent (tcp_pcb* pcb, uint16_t len) {
364
+ long AsyncClient::_sent (tcp_pcb* pcb, uint16_t len) {
365
365
_rx_last_packet = millis ();
366
366
ASYNC_TCP_DEBUG (" _sent: %u\n " , len);
367
367
_tx_unacked_len -= len;
@@ -375,7 +375,7 @@ int8_t AsyncClient::_sent(tcp_pcb* pcb, uint16_t len) {
375
375
return ERR_OK;
376
376
}
377
377
378
- int8_t AsyncClient::_recv (tcp_pcb* pcb, pbuf* pb, int8_t err) {
378
+ long AsyncClient::_recv (tcp_pcb* pcb, pbuf* pb, long err) {
379
379
if (pb == NULL ){
380
380
ASYNC_TCP_DEBUG (" _recv: pb == NULL! Closing... %d\n " , err);
381
381
return _close ();
@@ -414,7 +414,7 @@ int8_t AsyncClient::_recv(tcp_pcb* pcb, pbuf* pb, int8_t err) {
414
414
return ERR_OK;
415
415
}
416
416
417
- int8_t AsyncClient::_poll (tcp_pcb* pcb){
417
+ long AsyncClient::_poll (tcp_pcb* pcb){
418
418
// Close requested
419
419
if (_close_pcb){
420
420
_close_pcb = false ;
@@ -469,23 +469,23 @@ void AsyncClient::_s_dns_found(const char *name, ip_addr_t *ipaddr, void *arg){
469
469
reinterpret_cast <AsyncClient*>(arg)->_dns_found (ipaddr);
470
470
}
471
471
472
- int8_t AsyncClient::_s_poll (void *arg, struct tcp_pcb *tpcb) {
472
+ long AsyncClient::_s_poll (void *arg, struct tcp_pcb *tpcb) {
473
473
return reinterpret_cast <AsyncClient*>(arg)->_poll (tpcb);
474
474
}
475
475
476
- int8_t AsyncClient::_s_recv (void *arg, struct tcp_pcb *tpcb, struct pbuf *pb, int8_t err) {
476
+ long AsyncClient::_s_recv (void *arg, struct tcp_pcb *tpcb, struct pbuf *pb, long err) {
477
477
return reinterpret_cast <AsyncClient*>(arg)->_recv (tpcb, pb, err);
478
478
}
479
479
480
- void AsyncClient::_s_error (void *arg, int8_t err) {
480
+ void AsyncClient::_s_error (void *arg, long err) {
481
481
reinterpret_cast <AsyncClient*>(arg)->_error (err);
482
482
}
483
483
484
- int8_t AsyncClient::_s_sent (void *arg, struct tcp_pcb *tpcb, uint16_t len) {
484
+ long AsyncClient::_s_sent (void *arg, struct tcp_pcb *tpcb, uint16_t len) {
485
485
return reinterpret_cast <AsyncClient*>(arg)->_sent (tpcb, len);
486
486
}
487
487
488
- int8_t AsyncClient::_s_connected (void * arg, void * tpcb, int8_t err){
488
+ long AsyncClient::_s_connected (void * arg, void * tpcb, long err){
489
489
return reinterpret_cast <AsyncClient*>(arg)->_connected (tpcb, err);
490
490
}
491
491
@@ -896,7 +896,7 @@ uint8_t AsyncServer::status(){
896
896
return _pcb->state ;
897
897
}
898
898
899
- int8_t AsyncServer::_accept (tcp_pcb* pcb, int8_t err){
899
+ long AsyncServer::_accept (tcp_pcb* pcb, long err){
900
900
if (_connect_cb){
901
901
#if ASYNC_TCP_SSL_ENABLED
902
902
if (_noDelay || _ssl_ctx)
@@ -964,7 +964,7 @@ int8_t AsyncServer::_accept(tcp_pcb* pcb, int8_t err){
964
964
return ERR_OK;
965
965
}
966
966
967
- int8_t AsyncServer::_s_accept (void *arg, tcp_pcb* pcb, int8_t err){
967
+ long AsyncServer::_s_accept (void *arg, tcp_pcb* pcb, long err){
968
968
return reinterpret_cast <AsyncServer*>(arg)->_accept (pcb, err);
969
969
}
970
970
0 commit comments