代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/290808/3971351
c tcpserv01.c
#include "unp.h"
int
main(int argc, char **argv)
{
int listenfd, connfd;
pid_t childpid;
socklen_t clilen;
struct sockaddr_in cliaddr, servaddr;
listenfd = Socket(AF_INET, SOCK_STREAM,
www.eeworm.com/read/290808/3971411
c prdefaults.c
#include "unp.h"
static doit(int, const char *);
void
main()
{
int tcpsock, udpsock;
struct sockaddr_in servaddr;
if ( (tcpsock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
err_sys("TCP socket err
www.eeworm.com/read/434168/1874559
c ngx_http_access_module.c
/*
* Copyright (C) Igor Sysoev
*/
#include
#include
#include
/* AF_INET only */
typedef struct {
in_addr_t mask;
in_addr_t addr;
ng
www.eeworm.com/read/405279/2293998
cc arp.cc
/* arp.cc
basic arp cache and MAC addr resolution
$Id: arp.cc,v 1.17 1998/08/06 20:43:40 dmaltz Exp $
Note: code in this file violates the convention that addresses of
type Af_INET stored
www.eeworm.com/read/405279/2294050
cc arp.cc
/* arp.cc
basic arp cache and MAC addr resolution
$Id: arp.cc,v 1.17 1998/08/06 20:43:40 dmaltz Exp $
Note: code in this file violates the convention that addresses of
type Af_INET stored
www.eeworm.com/read/268381/11141800
cpp server.cpp
#include "debug.hpp"
#include "server.hpp"
TcpServer::TcpServer(const unsigned short port, const unsigned int thread_count) throw (ErrorCode) {
m_listen_addr.sin_family = AF_INET;
m_listen
www.eeworm.com/read/201726/15398111
asm monitor.asm
.code
StartMonitorLink proc uses ebx,hWin:DWORD,hSock:DWORD,hPort:DWORD,hMsg:DWORD
LOCAL szAddr:sockaddr_in
LOCAL nTimeOver:DWORD
invoke socket,AF_INET,SOCK_STREAM,IPPROTO_IP
mov ebx,hSock
www.eeworm.com/read/162027/10344147
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/159111/10693616
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/149488/5698662
c dns.c
/**
* DNS Resolution Code
* @author Craig Graham
* @date 07/11/2001
* @file dns.c
*/
#include
#include
#include
#include /* for AF_INET */