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

Function tcpConnect

modules/io/socket/zephyr/tcp.c:516–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516void tcpConnect(struct net_context *context, int status, void *user_data)
517{
518 TCP tcp = user_data;
519 tcp->ready = status >= 0;
520 if (!tcp->ready)
521 tcp->error = status;
522 tcpTrigger(tcp, tcp->ready ? kTCPWritable : kTCPError);
523}
524
525void tcpReceive(struct net_context *context, struct net_pkt *pkt, union net_ip_header *ip_hdr, union net_proto_header *proto_hdr, int status, void *user_data)
526{

Callers

nothing calls this directly

Calls 1

tcpTriggerFunction · 0.70

Tested by

no test coverage detected