LwIP, native tcp socket, user sent callback
This commit is contained in:
parent
23bc584caf
commit
78b897a07c
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;
|
||||
}
|
||||
|
||||
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) ;
|
||||
if(ssl->lwipCtx.sent)
|
||||
return ssl->lwipCtx.sent(ssl->lwipCtx.arg, pcb, err) ;
|
||||
/* user callback */
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user