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

Function tcp_bind_safe

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

Source from the content-addressed store, hash-verified

95}
96
97err_t tcp_bind_safe(struct tcp_pcb *tcpPCB, const ip_addr_t *ipaddr, u16_t port)
98{
99 LwipMsgRecord msg = {
100 .tcpPCB = tcpPCB,
101 .addr = *ipaddr,
102 .port = port
103 };
104 tcpip_api_call(tcp_bind_INLWIP, &msg.call);
105 return msg.err;
106}
107
108static err_t tcp_close_INLWIP(struct tcpip_api_call_data *tcpMsg)
109{

Callers 4

modSocket.cFile · 0.85
xs_listenerFunction · 0.85
xs_tcp_constructorFunction · 0.85
xs_listener_constructorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected