Lines Matching refs:tcp_pcb
49 struct tcp_pcb;
60 typedef err_t (*tcp_accept_fn)(void *arg, struct tcp_pcb *newpcb, err_t err);
72 typedef err_t (*tcp_recv_fn)(void *arg, struct tcp_pcb *tpcb,
86 typedef err_t (*tcp_sent_fn)(void *arg, struct tcp_pcb *tpcb,
98 typedef err_t (*tcp_poll_fn)(void *arg, struct tcp_pcb *tpcb);
124 typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err);
142 * @param arg user-supplied argument (tcp_pcb.callback_arg)
143 * @param pcb a new tcp_pcb that now is connected
154 * members common to struct tcp_pcb and struct tcp_listen_pcb
168 struct tcp_pcb {
172 TCP_PCB_COMMON(struct tcp_pcb);
307 err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
316 struct tcp_pcb * tcp_new (void);
318 void tcp_arg (struct tcp_pcb *pcb, void *arg);
319 void tcp_accept (struct tcp_pcb *pcb, tcp_accept_fn accept);
320 void tcp_recv (struct tcp_pcb *pcb, tcp_recv_fn recv);
321 void tcp_sent (struct tcp_pcb *pcb, tcp_sent_fn sent);
322 void tcp_poll (struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval);
323 void tcp_err (struct tcp_pcb *pcb, tcp_err_fn err);
341 void tcp_recved (struct tcp_pcb *pcb, u16_t len);
342 err_t tcp_bind (struct tcp_pcb *pcb, ip_addr_t *ipaddr,
344 err_t tcp_connect (struct tcp_pcb *pcb, ip_addr_t *ipaddr,
347 struct tcp_pcb * tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog);
350 void tcp_abort (struct tcp_pcb *pcb);
351 err_t tcp_close (struct tcp_pcb *pcb);
352 err_t tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx);
358 err_t tcp_write (struct tcp_pcb *pcb, const void *dataptr, u16_t len,
361 void tcp_setprio (struct tcp_pcb *pcb, u8_t prio);
367 err_t tcp_output (struct tcp_pcb *pcb);