Lines Matching refs:pcb

52  * connection can be accepted on a listening pcb.
55 * @param newpcb The new connection pcb
66 * @param tpcb The connection pcb which received data
77 * This also means that the pcb has now space available to send new data.
80 * @param tpcb The connection pcb for which data has been acknowledged
93 * @param tpcb tcp pcb
100 /** Function prototype for tcp error callback functions. Called when the pcb
103 * @note The corresponding pcb is already freed when this callback is called!
106 * @param err Error code to indicate why the pcb has been closed
112 /** Function prototype for tcp connected callback functions. Called when a pcb
117 * @param tpcb The connection pcb which is connected
143 * @param pcb a new tcp_pcb that now is connected
307 err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
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);
325 #define tcp_mss(pcb) (((pcb)->flags & TF_TIMESTAMP) ? ((pcb)->mss - 12) : (pcb)->mss)
326 #define tcp_sndbuf(pcb) ((pcb)->snd_buf)
327 #define tcp_sndqueuelen(pcb) ((pcb)->snd_queuelen)
328 #define tcp_nagle_disable(pcb) ((pcb)->flags |= TF_NODELAY)
329 #define tcp_nagle_enable(pcb) ((pcb)->flags &= ~TF_NODELAY)
330 #define tcp_nagle_disabled(pcb) (((pcb)->flags & TF_NODELAY) != 0)
333 #define tcp_accepted(pcb) do { \
334 LWIP_ASSERT("pcb->state == LISTEN (called for wrong pcb?)", pcb->state == LISTEN); \
335 (((struct tcp_pcb_listen *)(pcb))->accepts_pending--); } while(0)
337 #define tcp_accepted(pcb) LWIP_ASSERT("pcb->state == LISTEN (called for wrong pcb?)", \
338 (pcb)->state == LISTEN)
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);
348 #define tcp_listen(pcb) tcp_listen_with_backlog(pcb, TCP_DEFAULT_LISTEN_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);