代码搜索:AF_INET

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

代码结果 1,347
www.eeworm.com/read/290808/3970708

c mcast_get_loop.c

#include "unp.h" int mcast_get_loop(int sockfd) { switch (sockfd_to_family(sockfd)) { case AF_INET: { u_char flag; socklen_t len; len = sizeof(flag); if (getsockopt(sockfd, IPPROTO_IP, IP
www.eeworm.com/read/235601/14062301

c server.c

#include "common.h" #include "server.h" int tcp_listen() { int sock; struct sockaddr_in sin; int val=1; if((sock=socket(AF_INET,SOCK_STREAM,0))
www.eeworm.com/read/377888/9259212

c 16.16.c

#include #include #include int main() { int s; int val=1,len,i ; len= sizeof(int); if((s = socket(AF_INET,SOCK_STREAM,0))
www.eeworm.com/read/450574/7480867

py example.py

#!/usr/bin/python # need root privileges import struct import sys import time from socket import AF_INET, AF_INET6, inet_ntoa sys.path.append('python') sys.path.append('build/python') import nfque
www.eeworm.com/read/450574/7480869

py rewrite.py

#!/usr/bin/python # need root privileges import struct import sys import time from socket import AF_INET, AF_INET6, inet_ntoa sys.path.append('python') sys.path.append('build/python') import nfque
www.eeworm.com/read/138164/13256507

txt mysocket.cpp.txt

#include #include #include "mysocket.h" MySocket::MySocket() { address_family =AF_INET; socket_type = SOCK_STREAM; protocol_family = IPOTO_TCP; port_number =MySOCKET_DEFAU
www.eeworm.com/read/138164/13256509

bak mysocket.cpp.txt.bak

#include #include #include "mysocket.h" MySocket::MySocket() { address_family =AF_INET; socket_type = SOCK_STREAM; protocol_family = IPOTO_TCP; port_number =MySOCKET_DEFAU
www.eeworm.com/read/246537/4493505

c mcast_set_ttl.c

#include "unp.h" int mcast_set_ttl(int sockfd, int val) { switch (sockfd_to_family(sockfd)) { case AF_INET: { u_char ttl; ttl = val; return(setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL,
www.eeworm.com/read/246537/4493523

c sock_set_addr.c

#include "unp.h" void sock_set_addr(struct sockaddr *sa, socklen_t salen, const void *addr) { switch (sa->sa_family) { case AF_INET: { struct sockaddr_in *sin = (struct sockaddr_in *) sa; memc
www.eeworm.com/read/246537/4493545

c mcast_get_if.c

#include "unp.h" int mcast_get_if(int sockfd) { switch (sockfd_to_family(sockfd)) { case AF_INET: { /* TODO: similar to mcast_set_if() */ return(-1); } #ifdef IPV6 case AF_INET6: { u_int