tcp_recv()

Name

tcp_recv() -- Set callback for incoming data

Synopsis

void tcp_recv(struct tcp_pcb *pcb, err_t (*recv) (void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err));

Description

Sets the callback function that will be called when new data arrives on the connection associated with pcb. The callback function will be passed a NULL pbuf to indicate that the remote host has closed the connection.

2017-02-09
Documentation license for this page: eCosPro License