搜索资源列表
ACE_File
- 夸平台的基于ACE的简单文件传输源码 #include <fstream> #include \"ace/OS.h\" #include \"ace/Log_Msg.h\" #include \"ace/INET_Addr.h\" #include \"ace/SOCK_Stream.h\" #include \"ace/SOCK_Connector.h\"
一个PING远程主机的小程序
- 此例非常简单,仅仅调用了inet_addr、GetRTTAndHopCount-such cases is very simple, just call the inet_addr, GetRTTAndHopCount
一个判断远程主机存活程序代码
- 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP
一个PING远程主机的小程序
- 此例非常简单,仅仅调用了inet_addr、GetRTTAndHopCount-such cases is very simple, just call the inet_addr, GetRTTAndHopCount
ACE_File
- 夸平台的基于ACE的简单文件传输源码 #include <fstream> #include "ace/OS.h" #include "ace/Log_Msg.h" #include "ace/INET_Addr.h" #include "ace/SOCK_Stream.h" #include "ace/SOCK_Connector.h"-Kwame platform based on the ACE
client_serveur
- client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int so
lib
- int_to_char ,char_to_int, inet_addr, inet_ntoa 用于linux内核态-int_to_char, char_to_int, inet_addr, inet_ntoa state for the linux kernel
socket
- tcp udp 网络编程源码 //创建套接字 sHost = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) if(INVALID_SOCKET == sHost) { printf("socket failed!\n") WSACleanup() //释放套接字资源 return -1 } //设置服务器地址 servAddr
inet_ntoa()ainet_addr()ahtonl()
- inet_ntoa()、inet_addr()、htonl()函数的简单实现,并没有现实的头文件中的完美。仅供学习参考方法之用-Simple implementation of the function inet_ntoa()、inet_addr()、htonl()
inet_addr
- Useful for turning up subtle bugs: Change the following to TRUE, recompile, and run while at lunch.
SOCKET.CPP
- #include <winsock2.h> #pragma comment(lib, ws2_32.lib ) int main() { WSADATA WSAData SOCKET sock SOCKADDR_IN sin char buffer[255] WSAStartup(MAKEWORD(2,0), &WSAData) Tout est configuré