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

Function tcp_write_safe

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

Source from the content-addressed store, hash-verified

143}
144
145err_t tcp_write_safe(struct tcp_pcb *tcpPCB, const void *data, u16_t len, u8_t flags)
146{
147 LwipMsgRecord msg = {
148 .tcpPCB = tcpPCB,
149 .data = data,
150 .len = len,
151 .flags = flags
152 };
153 tcpip_api_call(tcp_write_INLWIP, &msg.call);
154 return msg.err;
155}
156
157static void tcp_recved_INLWIP(void *ctx)
158{

Callers 2

xs_socket_writeFunction · 0.85
xs_tcp_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected