Welcome![Sign In][Sign Up]
Location:
Search - TCP sock

Search list

[WinSock-NDISSock

Description: 一个关于TCP/IP网络的聊天工具,已经通过调试没有什么问题,大家可以放心下载!
Platform: | Size: 32045 | Author: 黎明 | Hits:

[TCP/IP stackTCP

Description: TCP做的一个SOCK,感觉效果还很不错。
Platform: | Size: 6853 | Author: Xin | Hits:

[WinSock-NDISTCP实现客户服务器聊天程序

Description:

 

操作系统课程设计任务书


一、设计题目:多机进程通信

应用Socket进程通信技术编写聊天室程序,实现基于服务器的并发多机信息转发。如果各客户端在线则可以实时聊天、发送接收文件,如果某客户端离线,则发送给他的消息可由服务器端进行内容缓存,待重新连线后可以自动接收通过服务器转发的信息或文件。缓存与转发的控制算法可参考操作系统课程中生产者消费者进程同步方法、缓冲池技术等相关理论。
二、设计思路和功能的详细描述
采用TCP协议,所以属于客户机/服务器模式,因此需要聊天服务器端和聊天客户端两个程序,实现的功能是:任意一台装有客户端程序的计算机都可以通过服务器端的IP地址与服务器相连,然后进入聊天室与连接到服务器的其他客户进行聊天。当客户聊天结束时,可以点断开与服务器断开连接,以释放进程让其他等待的客户进入聊天室,本聊天室最大同时支持50个客户端的连接,如果服务器配置较高可以修改程序来增加同时连接数。
三、采用的方法、技术、运行环境及其配置
本聊天程序采用TCP协议,用VC++编写,属于客户机/服务器模式。采用了多线程的机制。其中使用windows Sockets实现多台计算机(多个进程)间的通信,SOCKET实际在计算机中提供了一个通信端口,可以通过这个端口与任何一个具有SOCKET接口的计算机通信。应用程序在网络上传输,接收的信息都通过这个SOCKET接口来实现。客户机/服务器模式中客户应用程序向服务器程序请求服务。一个服务程序通常在一个众所周知的地址监听对服务的请求,也就是说,服务进程一直处于休眠状态,直到一个客户对这个服务的地址提出了连接请求。在这个时刻,服务程序被“惊醒”并且为客户提供服务即对客户的请求作出适当的反应。本聊天程序就是基于这中思想实现的,程序分为两大部分:TCP聊天服务器端和TCP聊天客户端。两者都拥有各自的SOCKET接口,其中服务器端SOCKET接口需要绑定到固定地址上(实现语句:ock=Socket(AF_INET,SOCK_STREAM,0);),等待客户端的连接(实现语句:listen(sock,5);)。等待客户端的连接的过程就是通过多进程机制来实现的。
聊天程序是在VISUAL C++6.0上编译实现的,在WINDOWS2000,XP上测试运行成功。
对客户计算机配置无特殊要求,由于所设置的最大连接进程为50,所以对服务器要求也不高。
四、关键源程序及其详细的注释
<一>、服务器端
1
、Socket初始化
//
初始化对话框
BOOL CCSocketDlg::OnInitDialog()
{

count=0;

m_list.InsertColumn(0,"消息");

m_list.SetColumnWidth(0,435);

m_edit.SetLimitText(99);

.

.

.

.

 


Platform: | Size: 55808 | Author: lenjear | Hits:

[Embeded-SCM Developuip-0.6

Description: 一个含socket接口的小型tcp/ip协议栈-A socket interface containing small tcp/ip protocol stack
Platform: | Size: 171008 | Author: zhwang | Hits:

[Proxy Serverkingate-1.6.tar

Description: kingate是一个代理服务器,能代理多种协议,包括:http,https,socks,ftp,pop3,smtp,telnet,dns。能运行在linux,freebsd,...及其它类unix,还有windows(最新版本要求nt 4.0以上)操作系统上 kingate是一个多线程的程序(采用线程池的方式),所以短时间内大量的连接请求,kingate还能保持很高的性能。 kingate还支持tcp端口映射,可以实现别人访问你的内网主机。-kingate is an agent server, can act the many kinds of agreements, including: Http, https, socks, ftp, pop3, smtp, telnet, dns. Can move in linux, freebsd.. And other kind of unix, but also has windows (the newest edition to request above nt 4.0) on the operating system kingate is a multi-thread procedure (uses line Cheng Chi the way), therefore in the short time the massive connections requested, kingate also can maintain the very high performance. Kingate also supports the tcp port mapping, may realize the others to visit you in webmaster machine.
Platform: | Size: 225280 | Author: none | Hits:

[Communicationconnector

Description: 用C实现的TCP/IP socket连接/读/写操作。采用了select方法来设置socket超时。此示例在Windows/unix系统下编译运行通过。-C realization of TCP/IP socket connections/read/write operation. Select the method used to set the socket overtime. This example in the Windows/Unix systems running through the compiler.
Platform: | Size: 2048 | Author: 潘振瑶 | Hits:

[Internet-NetworkMTServerSrc

Description: 一个多线程实现的TCP服务端 listen, 在accept一个请求后,再启动一个线程来处理对应的socket-a multithreaded achieving TCP server listen, accept a request and then start a thread to handle the corresponding socket
Platform: | Size: 6144 | Author: 无形 | Hits:

[Internet-NetworktcpChat

Description: 用VB实现的TCP聊天程序,利用windows socket实现。-VB TCP Chat procedure, and use windows socket achieve.
Platform: | Size: 171008 | Author: 王佑超 | Hits:

[CSharpWindowsApplication000

Description: 通过socket,TCP/IP协议,从WEB服务器(填写网站地址或IP地址)下载网页,保存到指定硬盘空间。-through the socket, TCP/IP, from the Web server (fill in Web addresses, or IP address) to download Web pages, designated to preserve disk space.
Platform: | Size: 25600 | Author: 张原 | Hits:

[Sniffer Package capturePacket_Listener

Description: 基于 Raw Socket 的 数据包捕获程序。支持 TCP/UDP/ICMP,支持端口及IP 过滤。-Raw Socket-based packet data capture process. Supports TCP/UDP/ICMP, IP and port support filtering.
Platform: | Size: 43008 | Author: xpan | Hits:

[Internet-NetworkTCPNet

Description: 一个采用TCP协议的网络测试工具。采用VC6.0开发环境,具有客户端和服务器端,加入进来的客户端可以互相发送接受数据,对学习socket编程是不错的借鉴。-using a TCP network testing tools. VC6.0 use development environment with the client and server side, joined the client can accept each other this data, to learn socket programming is a good reference.
Platform: | Size: 52224 | Author: lh | Hits:

[CommunicationEVC_socket

Description: 基于Embedded Visual C++的socket编程,包括TCP server和TCP client-based Embedded Visual C socket programming, including TCP server and TCP client
Platform: | Size: 74752 | Author: 金雷 | Hits:

[Windows CEWINCE_Socket

Description: WINCE下TCP/IP协议网络编程,包括服务器端和客户端,在局域网上运行完全正常。-WINCE under TCP/IP network programming, including server and client, LAN running completely normal.
Platform: | Size: 163840 | Author: 何全安 | Hits:

[Communicationsocket_test

Description: 一个socket测试程序,支持tcp/ip和udp,既可用于server端,也可以用于client端-a socket test procedure, support tcp/ip and udp used for both server side, but also can be used for client-
Platform: | Size: 26624 | Author: wan | Hits:

[Internet-Networktcp_socket_sort_vc

Description: 基于TCP WINSOCK的网络编程,包含客户端和服务器端。-based on the Winsock TCP network programming, including client and server.
Platform: | Size: 14336 | Author: Michael Ou | Hits:

[Database systemOftomatization

Description: 为了方便网络编程,90年代初,由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口,即Windows Sockets规范,它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。本篇论文主要是介绍了在TCP/IP基础上利用winsock2对网卡进行编程,以达到网络流量监测的目的。论文首先介绍了TCP/IP协议,旨在介绍IP,TCP,UDP等比较重要的协议。主要是介绍IP头,TCP头,UDP头的特点,以便从IP头中可以获取源地址,目的地址,协议类型等信息。在随后的章节中提出了Socket的概念,Socket实际上提供了一个通信端口使所有拥有Socket的端口的计算机之间能够相互通信,在本论文中主要说明了socket的建立,监听和撤销的过程。具体到程序实现中,对网卡混杂模式的设置是通过原始套接字(raw socket)来实现的。为了让原始套接字能接受所有的数据,还需要通过将SOCK_RAW设置成SIO_RCVALL。对数据包的获取通过recv()函数来完成。最后要完成的工作就是对所捕获的IP数据包进行分析以提取出我们所需要的信息。在论文的最后是旨在说明进一步工作的展开. 关键词:网络流量测量 TCP/IP协议 WINSOCK编程 -To facilitate network programming and the beginning of the 1990s, Microsoft jointly by several other companies to develop a set of Windows programming network access , that is, Windows Sockets norms, it is not a network protocol, but a liberal, Multi-protocol support for the Windows network programming interface. The main purpose of this paper is to introduce a TCP/IP based on the use of the card for winsock2 programming, to achieve network traffic monitoring purposes. Papers first introduced the TCP/IP protocol, aimed at introducing IP, TCP, UDP, and other more important agreements. IP is introduced first, the first TCP, UDP first features to the IP header from access to the source address, destination address, Agreement type, and other information. In the ensuing chapters of the Sock
Platform: | Size: 10240 | Author: wq57 | Hits:

[Internet-NetworkSock

Description: 一个关于TCP/IP网络的聊天工具,已经通过调试没有什么问题,大家可以放心下载!-On TCP/IP network chat tool that has been passed there is nothing wrong with debugging, we can be assured that download!
Platform: | Size: 1927168 | Author: 黎明 | Hits:

[TCP/IP stacktcpip

Description: A Simple TCP/IP stack with Sock API support
Platform: | Size: 51200 | Author: perry wu | Hits:

[TCP/IP stacksock

Description: 跨平台 socket 库,包括TCP和UDP,可以直接用.-Cross-platform socket library can be used directly.
Platform: | Size: 2048 | Author: danny | Hits:

[TCP/IP stackTCP-SOCKET

Description: 基于TCP的C/S模型,能够收发文件,类似于ICQ-TCP-based C/S model, able to send and receive files, similar to ICQ
Platform: | Size: 8354816 | Author: 小圈子 | Hits:
« 12 3 »

CodeBus www.codebus.net