MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / setup_tcp

Function setup_tcp

components/net/lwip/lwip-2.1.2/src/api/api_msg.c:513–524  ·  view source on GitHub ↗

* Setup a tcp_pcb with the correct callback function pointers * and their arguments. * * @param conn the TCP netconn to setup */

Source from the content-addressed store, hash-verified

511 * @param conn the TCP netconn to setup
512 */
513static void
514setup_tcp(struct netconn *conn)
515{
516 struct tcp_pcb *pcb;
517
518 pcb = conn->pcb.tcp;
519 tcp_arg(pcb, conn);
520 tcp_recv(pcb, recv_tcp);
521 tcp_sent(pcb, sent_tcp);
522 tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL);
523 tcp_err(pcb, err_tcp);
524}
525
526/**
527 * Accept callback function for TCP netconns.

Callers 4

accept_functionFunction · 0.70
pcb_newFunction · 0.70
lwip_netconn_do_connectFunction · 0.70

Calls 5

tcp_argFunction · 0.50
tcp_recvFunction · 0.50
tcp_sentFunction · 0.50
tcp_pollFunction · 0.50
tcp_errFunction · 0.50

Tested by

no test coverage detected