代码搜索:AF_INET

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

代码结果 1,347
www.eeworm.com/read/186080/8960915

c inetaddr.c

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

c sckname.c

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

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
www.eeworm.com/read/283183/9037284

cpp netset.cpp

//--------------------------------------------------------------------------- #include #pragma hdrstop #include #include "TypeDefine.h" #include "CommandID.h" #include "Ne
www.eeworm.com/read/283183/9037324

~cpp netset.~cpp

//--------------------------------------------------------------------------- #include #pragma hdrstop #include #include "TypeDefine.h" #include "CommandID.h" #include "Ne
www.eeworm.com/read/424775/10413994

cpp tcpsocket.cpp

// TCPSocket.cpp: implementation of the CTCPSocket class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "TCPSocket.h" #ifdef _DEBUG #
www.eeworm.com/read/278507/10529610

c sctpclient04.c

#include "unp.h" int main(int argc, char **argv) { int sock_fd; struct sockaddr_in servaddr; struct sctp_event_subscribe evnts; if(argc != 2) err_quit("Missing host argument - use '%s host'\n"
www.eeworm.com/read/278507/10529627

c sctpclient02.c

#include "unp.h" int main(int argc, char **argv) { int sock_fd; struct sockaddr_in servaddr; struct sctp_event_subscribe evnts; int echo_to_all=0; char byemsg[10]; if(argc < 2) err_quit("Mis
www.eeworm.com/read/278507/10529802

c family_to_level.c

#include "unp.h" int family_to_level(int family) { switch (family) { case AF_INET: return IPPROTO_IP; #ifdef IPV6 case AF_INET6: return IPPROTO_IPV6; #endif default: return -1; } } int Fa
www.eeworm.com/read/278507/10529930

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