代码搜索:AF_INET

找到约 1,347 项符合「AF_INET」的源代码

代码结果 1,347
www.eeworm.com/read/408584/11381560

h icmpd.h

#include "unpicmpd.h" struct client { int connfd; /* Unix domain stream socket to client */ int family; /* AF_INET or AF_INET6 */ int lport; /* local port bound to client's UDP socket */
www.eeworm.com/read/129979/14215402

c~ send.c~

#include #include #include #define DEST_IP "192.168.0.91" #define DEST_PORT 23 main() { int sockfd; struct sockaddr_in dest_addr; sockfd=socket(AF_INET,S
www.eeworm.com/read/129891/14218815

c sock_get_port.c

#include "unp.h" int sock_get_port(const struct sockaddr *sa, socklen_t salen) { switch (sa->sa_family) { case AF_INET: { struct sockaddr_in *sin = (struct sockaddr_in *) sa; return(sin->sin_p
www.eeworm.com/read/129891/14219693

h icmpd.h

#include "unpicmpd.h" struct client { int connfd; /* Unix domain stream socket to client */ int family; /* AF_INET or AF_INET6 */ int lport; /* local port bound to client's UDP socket */
www.eeworm.com/read/229133/14351784

cpp socket.cpp

#include "sock_os.h" // 下面两个函数LINUX支持,其他两个系统不支持 #if defined(WIN32) || defined(VXWORKS) // 点分十进制-->网络地址的转换; int inet_pton(int family,const char *strptr,void *addrptr) { if(family == AF_
www.eeworm.com/read/173467/9656036

c inetaton.c

/* inetaton.c: * * Example using inet_aton(3) : */ #include #include #include #include #include #include #include
www.eeworm.com/read/173467/9656038

c inetntoa.c

/* inetntoa.c: * * Example using inet_ntoa(3) : */ #include #include #include #include #include #include #include
www.eeworm.com/read/173467/9656044

c inetaddr.c

/* inetaddr.c: * * Example using inet_addr(3) : */ #include #include #include #include #include #include #include
www.eeworm.com/read/173467/9656119

c sckname.c

/* sckname.c : * * Demonstrate getsockname(2) : */ #include #include #include #include #include #include #include #in
www.eeworm.com/read/173467/9656123

makefile

CC= gcc STD= _GNU_SOURCE WARN= -Wall .c.o: $(CC) -c $(CFLAGS) -D$(STD) $(WARN) $< all: af_unix af_unix2 af_inet af_x25 af_ax25 af_unix: af_unix.o $(CC) af_unix.o -o af_unix af_unix2: af_unix2