| 514 | } |
| 515 | |
| 516 | void 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 | |
| 525 | void 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 | { |
nothing calls this directly
no test coverage detected