| 123456789101112131415 |
- #ifndef HOST_NET_H
- #define HOST_NET_H
- #include "syscall.h"
- int host_net_dns(const char *name, unsigned char ip[4]);
- int host_net_connect(const unsigned char mac[6], const unsigned char ip[4],
- unsigned int port);
- int host_net_send(const void *buf, unsigned int len);
- int host_net_recv(void *buf, unsigned int max, unsigned int timeout_ms);
- void host_net_close(void);
- int host_net_peer_mss(void);
- void host_net_info(struct sys_netinfo *out);
- #endif
|