当前位置: 技术问答>linux和unix
一段小程序,有几个问题。
来源: 互联网 发布时间:2016-12-03
本文导语: int main(int argc, char *argv[]) { int fd; //socket fd int count; //nic count struct ifconf ifc; struct ifreq ifr[NIC_MAX]; //create socket fd if ((fd = socket(AF_INET, SOCK_DGRAM, 0))
int main(int argc, char *argv[])
{
int fd; //socket fd
int count; //nic count
struct ifconf ifc;
struct ifreq ifr[NIC_MAX];
//create socket fd
if ((fd = socket(AF_INET, SOCK_DGRAM, 0))
{
int fd; //socket fd
int count; //nic count
struct ifconf ifc;
struct ifreq ifr[NIC_MAX];
//create socket fd
if ((fd = socket(AF_INET, SOCK_DGRAM, 0))