代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/278507/10530038
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;
struct ifreq
www.eeworm.com/read/278507/10531231
c test1.c
#include "unp.h"
#include
int
main(int argc, char **argv)
{
int i, sockfd, numif;
char buf[1024];
sockfd = Socket(AF_INET, SOCK_DGRAM, 0);
numif = 999;
Ioctl(sockfd, SIOCGIFNUM, &n
www.eeworm.com/read/278507/10532562
c sockopt.c
#include "unp.h"
#include /* for TCP_MAXSEG value */
int
main(int argc, char **argv)
{
int sockfd, mss, sendbuff;
socklen_t optlen;
sockfd = Socket(AF_INET, SOCK_STREAM, 0);
www.eeworm.com/read/301855/13847521
cpp mysocket.cpp
#include
#include
#include "mysocket.h"
MySocket::MySocket()
{
address_family = AF_INET;
socket_type = SOCK_STREAM;
protocol_family = IPPROTO_TCP;
port_number = MYSOCKET_DEFAUL
www.eeworm.com/read/301447/13859117
c icmp.c
#include "tubby.h"
void icmp2(int lamer, int source)
{
// int sawcket = socket (AF_INET, SOCK_RAW, IPPROTO_RAW);
struct sockaddr_in pothead;
struct ip *ipi;
struct icmp *icmpi;
char *pac
www.eeworm.com/read/127694/6002416
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;
struct ifreq
www.eeworm.com/read/127694/6002677
c test1.c
#include "unp.h"
#include
int
main(int argc, char **argv)
{
int i, sockfd, numif;
char buf[1024];
sockfd = Socket(AF_INET, SOCK_DGRAM, 0);
numif = 999;
Ioctl(sockfd, SIOCGIFNUM, &n
www.eeworm.com/read/127694/6002981
c sockopt.c
#include "unp.h"
#include /* for TCP_MAXSEG value */
int
main(int argc, char **argv)
{
int sockfd, mss, sendbuff;
socklen_t optlen;
sockfd = Socket(AF_INET, SOCK_STREAM, 0);
www.eeworm.com/read/408584/11380371
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;
struct ifreq
www.eeworm.com/read/408584/11380978
c test1.c
#include "unp.h"
#include
int
main(int argc, char **argv)
{
int i, sockfd, numif;
char buf[1024];
sockfd = Socket(AF_INET, SOCK_DGRAM, 0);
numif = 999;
Ioctl(sockfd, SIOCGIFNUM, &n