| 65 | } |
| 66 | |
| 67 | err_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 | |
| 79 | static void pbuf_free_INLWIP(void *ctx) |
| 80 | { |
no outgoing calls
no test coverage detected