在Linux中,要创建套接字,需要包含sys/socket.h头文件并使用socket()函数。头文件位于/usr/include/sys/socket.h。extern int socket (int __domain, int __type, int __protocol) __THROW;谢谢。
C程序编译失败,因为AF_MPLS不在/usr/include/sys/socket.h中。error: âAF_MPLSâ undeclared (first use in this function)RouteMPLS.c中使用的头文件<stdio.h>#include <string.h>#include &l