如何使用C获取系统中的事件接口(interface)列表?我需要使用什么 API 或库?我可以选择一个特定的接口(interface)来在套接字编程中发送数据吗?如果是,请举例说明。
最佳答案
如果在 Linux 上,您可能想看看:
int getifaddrs(struct ifaddrs **ifap);
The getifaddrs() function creates a linked list of structures describing the network interfaces of the local system, and stores the address of the first item of the list in *ifap.
关于c - 如何在 C 中获取事件网络接口(interface)的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18146236/