发布时间: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.........【阅读全文】
发布时间: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..........【阅读全文】
发布时间: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.........【阅读全文】
发布时间:2016-08-24 09:13:48
引言C++保留了一部分过程式语言的特点,因而它可以定义不属于任何类的全局变量和函数。但是,C++毕竟是一种面向对象的程序设计语言,为了支持函数的重载,C++对全局函数的处理方式与C有明显的不同。extern "C"的主要作用就是为了能够正确实现C++代码调用其他C语言代码。加上extern "C"后,会指示编.........【阅读全文】
发布时间: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 表示启动程序所需要的.........【阅读全文】