mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
LwIP, native tcp socket, user sent callback
This commit is contained in:
7
src/io.c
7
src/io.c
@@ -1176,9 +1176,14 @@ err_t CyaSSL_LwIP_recv_cb(void *cb, struct tcp_pcb *pcb, struct pbuf *p, s8_t er
|
|||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
err_t CyaSSL_LwIP_sent_cb(void *arg, struct tcp_pcb *pcb, u16_t err)
|
err_t CyaSSL_LwIP_sent_cb(void *cb, struct tcp_pcb *pcb, u16_t err)
|
||||||
{
|
{
|
||||||
|
CYASSL *ssl ;
|
||||||
|
ssl = (CYASSL *)cb ;
|
||||||
DBG_PRINTF_CB("CaSSL_LwIP_write_cb, err=%d\n", err) ;
|
DBG_PRINTF_CB("CaSSL_LwIP_write_cb, err=%d\n", err) ;
|
||||||
|
if(ssl->lwipCtx.sent)
|
||||||
|
return ssl->lwipCtx.sent(ssl->lwipCtx.arg, pcb, err) ;
|
||||||
|
/* user callback */
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user