Welcome![Sign In][Sign Up]
Location:
Search - winsock t

Search list

[Internet-NetworkSocketAdapter

Description: Library of C functions that allows a program to use WinSock 2 functionality if it is available or fall back to WinSock 1.1 if it isn t.
Platform: | Size: 6933 | Author: 胡永登 | Hits:

[WinSock-NDISping_srcedittion

Description: 该程序在 Windows 2000 Pro+SP4 下编译调试通过(Visual C++ 6.0 IDE环境)。 需要Winsock2支持。 1.该程序采用了winsock的原始套接字编程,实现了基本的Ping功能,使用方法:ping host,默认连续发送4个回显请求。 2.该程序中对ICMP首部的定义采用了非标准形式。即将选项数据中保存时间戳的头4个字节也定义为ICMP首部的一部分,这样ICMP首部就被定义为12个字节。这样主要做主要是为了编程的实现与理解上的方便。 3.根据习惯ICMP首部的标示符字段填充了进程ID。 4.该程序实现了在IP首部记录路由的RR功能,最多记录9个地址。 要实现的功能参数: 1.n 参数 设定发送回显请求的数量 2.l 参数 设定选项数据的填充字节数 3.t 参数 持续的发送回显请求,直到用户按下Control-C停止 4 w 参数 设定接收超时的时间,以毫秒为单位 参数的具体说明可以参考windows自带的ping程序-the program in Windows 2000 SP4 Pro compiler under through debugging (Visual C 6.0 IDE environment). Winsock2 need support. 1. The procedure adopted protocols of the original socket programming, the basic implementation of Ping function, Use : ping host, the default four consecutive send the request back significantly. 2. The procedure for the first ICMP using the definition of non-standard forms. Upcoming options to preserve the timestamp data for the first four bytes are defined as ICMP first part, the first such ICMP was defined as 12 bytes. This is done primarily to the realization of programming and understanding for it. 3. Under customary ICMP first marker Address field filled with the process ID. 4. The program achieved in the first record of IP routing RR functions, the most record
Platform: | Size: 14481 | Author: 赵锐 | Hits:

[Internet-NetworkInternetProgramming

Description: See Appendix B for a description of the programs included on this companion disk. RESOURCE.WRI identifies other books and resources for Internet programming. WEBHELP.HLP contains an introduction to the World Wide Web. TCPMAN.HLP provides detailed instructions to help you use the Trumpet Winsock included on this disk. Use the Program Manager s File menu Run option to execute the SETUP.EXE program found on this disk. SETUP.EXE will install the programs on your hard drive and create an Internet Programming group window. Internet编程技术 [配套程序] [涉及平台] VC [作者] void [文件大小] 1032K -See Appendix B for a description of the prog rams included on this companion disk. RESOURCE . WRI identifies books and other resources for I '96 programming. WEBHELP.HLP contains an introduction to the World Wide Web. TCPMAN.HLP provides detailed instructions to help you use the Trumpet Winsock included on this disk. Use t he Program Manager Run s File menu option to exec pop the SETUP.EXE program found on this disk. SE TUP.EXE will install the programs on your hard d RCD and create an Internet Programming group w INDOW. Internet programming techniques [supporting] [procedures involving platform] VC [Author] void [Size] 1032K
Platform: | Size: 980364 | Author: 罗宝生 | Hits:

[Other resourceWINDOWS__socket13

Description: 利用“原始套接字”(Raw Socket),我们可访问位于基层的传输协议。本章专门讲解如 何运用这种原始套接字,来模拟I P的一些实用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原 始套接字,亦可对I P头信息进行实际的操作。本章只关心I P协议;至于如何针对其他协议使 用原始套接字,我们不打算提及。而且,大多数协议(除AT M以外)根本就不支持原始套接 字。所有原始套接字都是使用S O C K _ R AW这个套接字类型来创建的,而且目前只有Wi n s o c k 2提供了对它的支持。因此,无论Microsoft Windows CE 还是老版本的Windows 95 (无 Winsock 2升级)均不能利用原始套接字的能力。-use "raw socket" (Raw Socket), we can visit at the grassroots transmission agreements. This chapter specifically on how to use the original socket, I P to simulate some practical tools, For example Tr a c e r t o u e and P i n g procedures, and so on. Original socket, I can right the first P information of the actual operation. I only care about this chapter P Agreement; As to how the other agreements original socket, we do not intend to mention. Moreover, most agreements (except outside AT M) simply does not support the original socket. All original socket are using S O C K R AW _ the socket types to create, but it's only Wi n o c k 2 of the support it. Therefore, Whether Microsoft Windows CE or an older version of Windows 95 (non-Win sock escalation 2) are not using the ori
Platform: | Size: 692344 | Author: 楼洛阳 | Hits:

[Internet-Network一个判断远程主机存活程序代码

Description: 一个判断远程主机存活程序代码(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_ECHOREPLY 0 struct icmp { unsigned char icmp_type; unsigned char icmp_code; unsigned short icmp_cksum; unsigned short icmp_id; unsigned short icmp_seq; unsigned long icmp_data; }; struct ip { unsigned char ip_hl:4; unsigned char ip_v:4; unsigned char ip_tos; unsigned short ip_len; unsigned short ip_id; unsigned short ip_off; unsigned char ip_ttl; unsigned char ip_p; unsigned short ip_sum; unsigned long ip_src; unsigned long ip_dst; }; unsigned char sendpacket[PACKET_SIZE]; unsigned char recvpacket[PACKET_SIZE]; struct sockaddr_in dest_addr; struct sockaddr_in from_addr; int sockfd; int pid; unsigned short cal_chksum(unsigned short *addr,int len); int pack(int pack_no); int unpack(unsigned char *buf,int len); void send_packet(void); void recv_packet(void); void main(int argc,char *argv[]) { struct hostent *host; struct protoent *protocol; WSADATA wsaData; int timeout=1000; int SEND_COUNT=4; int i; char *par_host; par_host=argv[argc-1]; //IP赋值 switch(argc) { case 2: break; case 3: if(strcmp(argv[1],"-t")==0) { SEND_COUNT=10000; break; } //fall through default: printf("usage: %s [-t] Host name or IP address\n",argv[0]); exit(1); } if(WSAStartup(0x1010,&wsaData)!=0) { printf("wsastartup error\n"); exit(1); } if( (protocol=getprotobyname("icmp") )==NULL) { printf("getprotobyname error\n"); exit(1); } /* printf("%s\n",protocol->p_name); printf("%s\n",protocol->p_aliases); printf("%d\n",protocol->p_proto); system("pause"); */ if( (sockfd=socket(AF_INET,SOCK_RAW,protocol->p_proto) )<0) { printf("socket error\n"); exit(1); } if(setsockopt(sockfd,SOL_SOCKET,SO_RCVTIMEO,(char*)&timeout,sizeof(timeout))h_length); //resolve address to hostname if(host=gethostbyaddr(host->h_addr,4,PF_INET)) par_host=host->h_name; // //printf("%s\n",par_host); // } else if( dest_addr.sin_addr.s_addr=inet_addr(par_host)==INADDR_NONE) { printf("Unkown host %s\n",par_host); exit(1); } pid=getpid(); /* printf("%d\n",pid); system("pause"); */ printf("Pinging %s [%s]: with %d bytes of data:\n\n",par_host,inet_ntoa(dest_addr.sin_addr),SEND_SIZE); for(i=0;i1) { sum+=*w++; nleft-=2; } if( nleft==1) { *(unsigned char *)(&answer)=*(unsigned char *)w; sum+=answer; } sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); answer=~sum; return answer; } //打包 int pack(int pack_no) { int packsize; struct icmp *icmp; packsize=8+SEND_SIZE; icmp=(struct icmp*)sendpacket; icmp->icmp_type=ICMP_ECHO; icmp->icmp_code=0; icmp->icmp_cksum=0; icmp->icmp_seq=pack_no; icmp->icmp_id=pid; icmp->icmp_data=GetTickCount(); icmp->icmp_cksum=cal_chksum( (unsigned short *)icmp,packsize); /*校验算法*/ return packsize; } //解包 int unpack(unsigned char *buf,int len) { struct ip *ip; struct icmp *icmp; double rtt; int iphdrlen; ip=(struct ip *)buf; iphdrlen=ip->ip_hl*4; icmp=(struct icmp *)(buf+iphdrlen); if( (icmp->icmp_type==ICMP_ECHOREPLY) && (icmp->icmp_id==pid) ) { len=len-iphdrlen-8; rtt=GetTickCount()-icmp->icmp_data; printf("Reply from %s: bytes=%d time=%.0fms TTL=%d icmp_seq=%u\n", inet_ntoa(from_addr.sin_addr), len, rtt, ip->ip_ttl, icmp->icmp_seq); return 1; } return 0; } //发送 void send_packet() { int packetsize; static int pack_no=0; packetsize=pack(pack_no++); if( sendto(sockfd,(char *)sendpacket,packetsize,0,(struct sockaddr *)&dest_addr,sizeof(dest_addr) )=0) success=unpack(recvpacket,n); else if (WSAGetLastError() == WSAETIMEDOUT) { printf("Request timed out.\n"); return; } }while(!success); } UID5380 帖子239 精华0 积分1289 阅读权限40 来自软件学院 在线时间81 小时 注册时间2006-5-22 最后登录2007-2-24 查看详细资料 TOP
Platform: | Size: 5881 | Author: shuiyuan313 | Hits:

[Internet-NetworkSocketAdapter

Description: Library of C functions that allows a program to use WinSock 2 functionality if it is available or fall back to WinSock 1.1 if it isn t.
Platform: | Size: 6144 | Author: 胡永登 | Hits:

[Internet-Networkvb udp_tcp

Description: Winsock创建TCPIP服务器程序-Winsock create TCPIP server
Platform: | Size: 2048 | Author: 姚楚棉 | Hits:

[Internet-Networktcppacket

Description: 用Raw Socket构造TCP报文-with Raw Socket tectonic TCP Packet
Platform: | Size: 2048 | Author: 赵海峰 | Hits:

[ICQ-IM-ChatTcp_Chat

Description: VC TCP winsocket 聊天程序 VC TCP winsocket 聊天程序-VC TCP winsocket chat program VC TCP winsocket chat program
Platform: | Size: 206848 | Author: king | Hits:

[Internet-Networkping_srcedittion

Description: 该程序在 Windows 2000 Pro+SP4 下编译调试通过(Visual C++ 6.0 IDE环境)。 需要Winsock2支持。 1.该程序采用了winsock的原始套接字编程,实现了基本的Ping功能,使用方法:ping host,默认连续发送4个回显请求。 2.该程序中对ICMP首部的定义采用了非标准形式。即将选项数据中保存时间戳的头4个字节也定义为ICMP首部的一部分,这样ICMP首部就被定义为12个字节。这样主要做主要是为了编程的实现与理解上的方便。 3.根据习惯ICMP首部的标示符字段填充了进程ID。 4.该程序实现了在IP首部记录路由的RR功能,最多记录9个地址。 要实现的功能参数: 1.n 参数 设定发送回显请求的数量 2.l 参数 设定选项数据的填充字节数 3.t 参数 持续的发送回显请求,直到用户按下Control-C停止 4 w 参数 设定接收超时的时间,以毫秒为单位 参数的具体说明可以参考windows自带的ping程序-the program in Windows 2000 SP4 Pro compiler under through debugging (Visual C 6.0 IDE environment). Winsock2 need support. 1. The procedure adopted protocols of the original socket programming, the basic implementation of Ping function, Use : ping host, the default four consecutive send the request back significantly. 2. The procedure for the first ICMP using the definition of non-standard forms. Upcoming options to preserve the timestamp data for the first four bytes are defined as ICMP first part, the first such ICMP was defined as 12 bytes. This is done primarily to the realization of programming and understanding for it. 3. Under customary ICMP first marker Address field filled with the process ID. 4. The program achieved in the first record of IP routing RR functions, the most record
Platform: | Size: 14336 | Author: 赵锐 | Hits:

[Internet-NetworkInternetProgramming

Description: See Appendix B for a description of the programs included on this companion disk. RESOURCE.WRI identifies other books and resources for Internet programming. WEBHELP.HLP contains an introduction to the World Wide Web. TCPMAN.HLP provides detailed instructions to help you use the Trumpet Winsock included on this disk. Use the Program Manager s File menu Run option to execute the SETUP.EXE program found on this disk. SETUP.EXE will install the programs on your hard drive and create an Internet Programming group window. Internet编程技术 [配套程序] [涉及平台] VC [作者] void [文件大小] 1032K -See Appendix B for a description of the prog rams included on this companion disk. RESOURCE . WRI identifies books and other resources for I '96 programming. WEBHELP.HLP contains an introduction to the World Wide Web. TCPMAN.HLP provides detailed instructions to help you use the Trumpet Winsock included on this disk. Use t he Program Manager Run s File menu option to exec pop the SETUP.EXE program found on this disk. SE TUP.EXE will install the programs on your hard d RCD and create an Internet Programming group w INDOW. Internet programming techniques [supporting] [procedures involving platform] VC [Author] void [Size] 1032K
Platform: | Size: 979968 | Author: 罗宝生 | Hits:

[Communicationtcp_ip

Description: vb利用winSocket写的 网络数据传输 程序 很简单的实现了文件的传输,XPSP2 上 vb6.0 调试通过。 -vb winSocket write use of network data transmission procedure is very simple realization of the document transmission, XPSP2 on vb6.0 debugging through.
Platform: | Size: 9216 | Author: meiwei | Hits:

[VC/MFCWINDOWS__socket13

Description: 利用“原始套接字”(Raw Socket),我们可访问位于基层的传输协议。本章专门讲解如 何运用这种原始套接字,来模拟I P的一些实用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原 始套接字,亦可对I P头信息进行实际的操作。本章只关心I P协议;至于如何针对其他协议使 用原始套接字,我们不打算提及。而且,大多数协议(除AT M以外)根本就不支持原始套接 字。所有原始套接字都是使用S O C K _ R AW这个套接字类型来创建的,而且目前只有Wi n s o c k 2提供了对它的支持。因此,无论Microsoft Windows CE 还是老版本的Windows 95 (无 Winsock 2升级)均不能利用原始套接字的能力。-use "raw socket" (Raw Socket), we can visit at the grassroots transmission agreements. This chapter specifically on how to use the original socket, I P to simulate some practical tools, For example Tr a c e r t o u e and P i n g procedures, and so on. Original socket, I can right the first P information of the actual operation. I only care about this chapter P Agreement; As to how the other agreements original socket, we do not intend to mention. Moreover, most agreements (except outside AT M) simply does not support the original socket. All original socket are using S O C K R AW _ the socket types to create, but it's only Wi n o c k 2 of the support it. Therefore, Whether Microsoft Windows CE or an older version of Windows 95 (non-Win sock escalation 2) are not using the ori
Platform: | Size: 692224 | Author: 楼洛阳 | Hits:

[source in ebookjava_winsock

Description: java网络高级编程,这里包含本书的大部分源程序,读者需要调试程序时可以直接从这里拷贝到自己的相应目录下面。 本书中的每一章都单独作为一个目录,例如“chap1”中就包含了第一章中的源程序清单。 读者在查找文件时,首先到相应的目录下面去查找,如果没有则表明该章原文中有两个相同的文件名,则用户可以到该章相应的子文件夹中查找。例如读者查找“源程序清单7-6”,而该章中同时具有好几个文件名都命名为相同的MainFrame,则读者可以先到“chap5”目录下面去查找MainFrame.java,如果没有则在chap5目录下面的“7_6”子目录下面去查找该文件就可以了。 用户需要使用某个文件时,则需要将相应的文件处,同时注意文件中的package关键字(若存在package关键字,则需要将所有同package的文件拷贝到以该package为目录名的目录下面),然后用户就可以对源文件进行编译并运行得到本书中的运行结果。当然读者首先需要有一个Java的运行环境! 同时在每个文件夹下面如果再有其它类型的文件夹则是利用Jbuilder来生成的项目文件及相应的Java文件,读者可以利用Jbuilder直接打开该工程即可后编译运行! -java network programming, here includes most of the book's source, Debugging procedure needs of the readers can copy directly from here to the corresponding directory. Each chapter of this book are as a separate directory, For example, "chap1" includes the first chapter of the source list. Readers in search for documents, the first of the corresponding directory to locate, If not then show that the text of Chapter two of the same name, Users can then chapter corresponding to the sub-folder search. For example, readers find "source list 7-6" The chapter also has several documents were all named to the same MainFrame. Readers will be first. "chap5" directory to find MainFrame.java. If not in the directory chap5 "7_6" subdirectories below to find t
Platform: | Size: 145408 | Author: 王波 | Hits:

[Internet-NetworkMakeTCPHoleNat

Description: 很好用的tcp穿透nat的程序代码,是两个在nat后的pc可以直接通讯。-Good penetration with the tcp code nat is nat after two in the pc can communicate directly.
Platform: | Size: 4258816 | Author: 扬载伦 | Hits:

[TCP/IP stacktcpip.vb

Description: TCP/IP通讯程序,基于WinSocket,可以分时地实现客户端和服务器端仿真。-TCP/IP communication process, based on the WinSocket, can be time-sharing to achieve client and server-side simulation.
Platform: | Size: 15360 | Author: 陈志平 | Hits:

[TCP/IP stackWINSOCK-TCP

Description: TCP网络聊天的代码示例
Platform: | Size: 109568 | Author: fengforky | Hits:

[Internet-NetworkMFC_ChatRoom_WINSOCK-TCP

Description: MFC开发的聊天室,有server和client 支持多人聊天 适合MFC开发者学习和使用- a chat room developed in mfc support multi_person chating
Platform: | Size: 1657856 | Author: 田杰 | Hits:

[VC/MFCWin32SocketClient

Description: Socket programming in MFC is usually a bit messy. It s always clean and convenient to write the socket programs using Win32. A big advantage writing these programs in Win32 is, we can follow the same model as in any Unix C++ socket program. Also, with each and every new version of Winsock, we don t know how many bugs are going to get added to the development frameworks. -Socket programming in MFC is usually a bit messy. It s always clean and convenient to write the socket programs using Win32. A big advantage writing these programs in Win32 is, we can follow the same model as in any Unix C++ socket program. Also, with each and every new version of Winsock, we don t know how many bugs are going to get added to the development frameworks.
Platform: | Size: 12288 | Author: abdul | Hits:

[.netwinsock

Description: Installation instructions: Extract the .dll file .zip file. We recommend that you extract the .dll to the installation directory of the program that is requesting the .dll. If that doesn t work, you will have to extract the .dll to your system directory. By default, this is: C:\Windows\System (Windows 95/98/Me) C:\WINNT\System32 (Windows NT/2000) C:\Windows\System32 (Windows XP, Vista, 7, win 8) If you use a 64-bit version of Windows, you should also place the .dll in C:\Windows\SysWOW64Make sure to overwrite any existing files (but make a backup copy of the original file for safety). Reboot your computer. If the problem still occurs, try the following: Open Windows Start menu and Run... . Type CMD and press Enter (or if you use Windows ME, type COMMAND)). Type regsvr32 <filename>.dll and press Enter.-Installation instructions: Extract the .dll file .zip file. We recommend that you extract the .dll to the installation directory of the program that is requesting the .dll. If that doesn t work, you will have to extract the .dll to your system directory. By default, this is: C:\Windows\System (Windows 95/98/Me) C:\WINNT\System32 (Windows NT/2000) C:\Windows\System32 (Windows XP, Vista, 7, win 8) If you use a 64-bit version of Windows, you should also place the .dll in C:\Windows\SysWOW64Make sure to overwrite any existing files (but make a backup copy of the original file for safety). Reboot your computer. If the problem still occurs, try the following: Open Windows Start menu and Run... . Type CMD and press Enter (or if you use Windows ME, type COMMAND)). Type regsvr32 <filename>.dll and press Enter.
Platform: | Size: 2048 | Author: mtulia | Hits:
« 12 »

CodeBus www.codebus.net