代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/278507/10530289
c udpserv01.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr, grpaddr, cliaddr;
sockfd = Socket(AF_INET, SOCK_DGRAM, 0);
bzero(&servaddr, sizeof(servaddr));
s
www.eeworm.com/read/278507/10531899
c udpcli05.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: udpcli ");
bzero(&servaddr, sizeof(servaddr));
serv
www.eeworm.com/read/278507/10531959
c tisfdtype.c
#include "unp.h"
main()
{
int tcpsock, udpsock;
printf("stdin: %d\n", Isfdtype(STDIN_FILENO, S_IFSOCK));
printf("stdout: %d\n", Isfdtype(STDOUT_FILENO, S_IFSOCK));
printf("stderr: %d\n", Isfdtyp
www.eeworm.com/read/278507/10531997
c funcs.c
#include "test.h"
/*
* Fill in the global servaddr{} as a side effect.
*/
int
TcpSockByAddr(char *ipaddr, int port /* host byte order */ )
{
int sockfd;
sockfd = Socket(AF_INET, SOCK_STREAM
www.eeworm.com/read/278507/10532232
c tcpcli07.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
void sig_alrm(int);
struct itimerval val;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: tcpcli
www.eeworm.com/read/423577/10546830
c ctl.c
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi
www.eeworm.com/read/439145/7716366
c mod-icmp.c
/*
Copyright (c) 2006, 2007 Dmitry Butskoy
License: GPL v2 or any later
See COPYING for the status of this software.
*/
#include
#include
www.eeworm.com/read/140523/13077954
cpp tcp_senddlg.cpp
// TCP_SENDDlg.cpp : implementation file
//
#include "stdafx.h"
#include "TCP_SEND.h"
#include "TCP_SENDDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[]
www.eeworm.com/read/327324/13086122
c sktcl.c
/*
inet_addr example
AUP2, Sec. 8.02.3
Copyright 2003 by Marc J. Rochkind. All rights reserved.
May be copied only for purposes and under conditions described
on the Web page www.basepath.com/au
www.eeworm.com/read/140582/5785214
c getipnode.c
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for an