Lines Matching refs:tcp_pcb
101 struct tcp_pcb *tcp_bound_pcbs;
106 struct tcp_pcb *tcp_active_pcbs;
108 struct tcp_pcb *tcp_tw_pcbs;
113 struct tcp_pcb ** const tcp_pcb_lists[] = {&tcp_listen_pcbs.pcbs, &tcp_bound_pcbs,
117 struct tcp_pcb *tcp_tmp_pcb;
165 * @param pcb the tcp_pcb to close
170 tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
280 * @param pcb the tcp_pcb to close
285 tcp_close(struct tcp_pcb *pcb)
313 tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx)
353 * @param pcb the tcp_pcb to abort
357 tcp_abandon(struct tcp_pcb *pcb, int reset)
413 tcp_abort(struct tcp_pcb *pcb)
423 * @param pcb the tcp_pcb to bind (no check is done whether this pcb is
433 tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port)
437 struct tcp_pcb *cpcb;
494 tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
510 * @param pcb the original tcp_pcb
512 * @return tcp_pcb used for listening, consumes less memory.
514 * @note The original tcp_pcb is freed. This function therefore has to be
518 struct tcp_pcb *
519 tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog)
569 TCP_REG(&tcp_listen_pcbs.pcbs, (struct tcp_pcb *)lpcb);
570 return (struct tcp_pcb *)lpcb;
579 u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
607 * @param pcb the tcp_pcb for which data is read
611 tcp_recved(struct tcp_pcb *pcb, u16_t len)
651 struct tcp_pcb *pcb;
675 * @param pcb the tcp_pcb used to establish the connection
684 tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port,
725 struct tcp_pcb *cpcb;
790 struct tcp_pcb *pcb, *prev;
948 struct tcp_pcb *pcb2;
1018 struct tcp_pcb *pcb2;
1048 struct tcp_pcb *pcb;
1057 struct tcp_pcb *next;
1085 tcp_process_refused_data(struct tcp_pcb *pcb)
1159 * @param pcb the tcp_pcb to manipulate
1163 tcp_setprio(struct tcp_pcb *pcb, u8_t prio)
1197 tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
1219 struct tcp_pcb *pcb, *inactive;
1252 struct tcp_pcb *pcb, *inactive;
1272 * Allocate a new tcp_pcb structure.
1275 * @return a new tcp_pcb that initially is in state CLOSED
1277 struct tcp_pcb *
1280 struct tcp_pcb *pcb;
1283 pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
1288 /* Try to allocate a tcp_pcb again. */
1289 pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
1294 /* Try to allocate a tcp_pcb again. */
1295 pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
1307 memset(pcb, 0, sizeof(struct tcp_pcb));
1360 * @return a new tcp_pcb that initially is in state CLOSED
1362 struct tcp_pcb *
1372 * @param pcb tcp_pcb to set the callback argument
1376 tcp_arg(struct tcp_pcb *pcb, void *arg)
1388 * @param pcb tcp_pcb to set the recv callback
1392 tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)
1402 * @param pcb tcp_pcb to set the sent callback
1406 tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent)
1416 * @param pcb tcp_pcb to set the err callback
1421 tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
1431 * @param pcb tcp_pcb to set the accept callback
1436 tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept)
1452 tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
1467 * @param pcb tcp_pcb to purge. The pcb itself is not deallocated!
1470 tcp_pcb_purge(struct tcp_pcb *pcb)
1535 * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated!
1538 tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
1699 struct tcp_pcb *pcb;
1708 for(pcb = (struct tcp_pcb *)tcp_listen_pcbs.pcbs; pcb != NULL; pcb = pcb->next) {
1724 * Check state consistency of the tcp_pcb lists.
1729 struct tcp_pcb *pcb;