代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/127438/6006086
py mpdlib.py
#!/usr/bin/env python
from sys import version_info, stdout, exc_info, exit
from socket import socket, AF_INET, SOCK_STREAM
from re import sub, split
from cPickle import dumps, l
www.eeworm.com/read/343528/11943029
cpp ping.cpp
#include "Ping.h"
#include
Ping::Ping(){
Ping(56);
}
Ping::Ping(int dataLength){
this->dataLength=dataLength;
pid=getpid();
sockfd=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
int size=6
www.eeworm.com/read/229497/14334079
cpp macdhcp.cpp
#include "macdhcp.h"
macdhcp::macdhcp()
{
ifc.ifc_len = sizeof buf;
ifc.ifc_buf = (caddr_t) buf;
if( !(fd = socket (AF_INET, SOCK_DGRAM, 0)) ) {
qWarning( "DEBUG: can't open soc
www.eeworm.com/read/229497/14334103
cpp macdhcp.cpp
#include "macdhcp.h"
macdhcp::macdhcp()
{
ifc.ifc_len = sizeof buf;
ifc.ifc_buf = (caddr_t) buf;
if( !(fd = socket (AF_INET, SOCK_DGRAM, 0)) ) {
qWarning( "DEBUG: can't open soc
www.eeworm.com/read/325387/3484387
c ngx_http_realip_module.c
/*
* Copyright (C) Igor Sysoev
*/
#include
#include
#include
/* AF_INET only */
typedef struct {
in_addr_t mask;
in_addr_t addr;
} ngx_
www.eeworm.com/read/292685/3950378
c ngx_http_realip_module.c
/*
* Copyright (C) Igor Sysoev
*/
#include
#include
#include
/* AF_INET only */
typedef struct {
in_addr_t mask;
in_addr_t addr;
} ngx_
www.eeworm.com/read/434168/1874558
c ngx_http_realip_module.c
/*
* Copyright (C) Igor Sysoev
*/
#include
#include
#include
/* AF_INET only */
typedef struct {
in_addr_t mask;
in_addr_t addr;
} ngx_
www.eeworm.com/read/354889/3072418
c dns.c
/**
* DNS Resolution Code
* @author Craig Graham
* @date 07/11/2001
* @file dns.c
*/
#include
#include
#include
#include /* for AF_INET */
www.eeworm.com/read/262229/4314501
c dns.c
/**
* DNS Resolution Code
* @author Craig Graham
* @date 07/11/2001
* @file dns.c
*/
#include
#include
#include
#include /* for AF_INET */
www.eeworm.com/read/172888/9683395
c mcast_set_if.c
#include "unp.h"
#include
int
mcast_set_if(int sockfd, const char *ifname, u_int ifindex)
{
switch (sockfd_to_family(sockfd)) {
case AF_INET: {
struct in_addr inaddr;
struc