Chinaunix首页 | 论坛 | 博客
  • 博客访问: 273662
  • 博文数量: 67
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 620
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-12 19:56
文章分类

全部博文(67)

文章存档

2019年(1)

2018年(1)

2017年(4)

2016年(34)

2015年(27)

我的朋友

发布时间:2016-09-01 14:30:48

The following example enables a socket to perform the steps listed belowand to send multicast datagrams:Create an AF_INET, SOCK_DGRAM type socket.Initialize a sockaddr_in structure with the destination group IP addressand port number.Set the IP_MULTICAST_LOOP socket opti.........【阅读全文】

阅读(1520) | 评论(0) | 转发(0)

发布时间:2016-09-01 14:30:15

The following example enables a socket to perform the steps listed belowand to receive multicast datagrams:Create an AF_INET, SOCK_DGRAM type socket.Set the SO_REUSEADDR option to allow multiple applications to receivedatagrams that are destined to the same local port number..........【阅读全文】

阅读(1414) | 评论(0) | 转发(0)

发布时间:2016-09-01 14:24:23

IP multicasting provides the capability for anapplication to send a single IP datagram that a group of hosts in a networkcan receive. The hosts that are in the group may reside on a singlesubnet or may be on different subnets that connect multicast-capablerouters. Hosts may join an.........【阅读全文】

阅读(1391) | 评论(0) | 转发(0)

发布时间:2016-08-24 09:13:48

引言C++保留了一部分过程式语言的特点,因而它可以定义不属于任何类的全局变量和函数。但是,C++毕竟是一种面向对象的程序设计语言,为了支持函数的重载,C++对全局函数的处理方式与C有明显的不同。extern "C"的主要作用就是为了能够正确实现C++代码调用其他C语言代码。加上extern "C"后,会指示编.........【阅读全文】

阅读(1527) | 评论(0) | 转发(0)

发布时间:2016-08-05 14:31:23

分析linux系统如何装载和启动一个可执行程序,也就是分析一个重要的系统调用execveexecve函数原型: #include <unistd.h> int execve (const char* path,char* const argv[],char* const envp[]);参数说明:path 表示启动程序所在的路径名;argv 表示启动程序所带的参数;envp 表示启动程序所需要的.........【阅读全文】

阅读(1630) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册