MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / tcp_connect_safe

Function tcp_connect_safe

modules/network/socket/lwip/modLwipSafe.c:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67err_t tcp_connect_safe(struct tcp_pcb *skt, const ip_addr_t *ipaddr, u16_t port, tcp_connected_fn connected)
68{
69 LwipMsg msg = c_malloc(sizeof(LwipMsgRecord));
70 msg->tcpPCB = skt,
71 msg->addr = *ipaddr,
72 msg->port = port,
73 msg->connected = connected,
74 tcpip_callback_with_block(tcp_connect_INLWIP, msg, 0);
75
76 return ERR_OK;
77}
78
79static void pbuf_free_INLWIP(void *ctx)
80{

Callers 2

modSocket.cFile · 0.85
xs_tcp_constructorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected