Welcome![Sign In][Sign Up]
Location:
Search - windows tcp

Search list

[Internet-Networkwindows socket编程

Description: 首先Server程序创建两个socket: 分别为 TCP socket(使用命令行参数指定端口号) UDP socket(UDP端口号自定义,使用宏定义写在程序里,必须大于1024)。 server端在这两个端口上侦听连接,接受来自客户端的服务请求。
Platform: | Size: 27503 | Author: rita552129 | 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:

[BooksWindows Sockets完全进阶手册

Description: 本书适应了Windows、Internet及计算机网络普及的潮流,介绍了一套在Windows 下网络编程的规范-Windows Sockets。这套规范是Windows下得到广泛应用的、开 放的、支持多种协议的网络编程接口。从1991年的1.0版到1995年的2.0.8版,经 过不断完善并在Intel、Microsoft、Sun、SGI、Informix、Novell等公司的全力支持下, 已成为Windows网络编程的事实上的标准。为使读者能够充分理解和应用这套规范, 本书不但对Windows Sockets 1.1及2.0规范作了较为详尽的介绍,还结合了作者的 实际工作,给出了具有实际应用价值的程序实例。书中的内容包括:Windows Sockets 规范1.1版及2.0.8版介绍;Windows Sockets网络编程指导和具体应用实例;Windows Sockets规范1.1版及2.0.8版库函数参考等。 本书体系完整,文字流畅,可供从事网络应用开发的工程技术人员和大专院校 师生参考。
Platform: | Size: 1396828 | Author: kuyaya | Hits:

[Internet-Networktcp

Description: 站长写的Unix和Windows下的socket通用函数,简单易用。带Unix下的小例子- Stationmaster writes under Unix and the Windows socket general function, simple is easy to use. Brings under Unix the small example
Platform: | Size: 8192 | Author: 站长 | Hits:

[Bookswindows server 2003 tcp ip protocols and services

Description: windows server 2003 tcp ip protocols and services technical reference 最新window网络编程资料-windows server 2,003 tcp ip protocols and services technical reference newest window network programming material
Platform: | Size: 1467392 | Author: | Hits:

[Embeded-SCM DevelopTCP IP协议源码

Description: 实现一个运行在16位数字信号处理器TMS320VC5402上的小型嵌入式TCP/IP协议栈。对TCP/IP协议中的IP协议、ARP协议、UDP协议进行分析,完成基于TCP/IP协议的嵌入式网络系统-A small embedded TCP/IP protocol stack running in a 16bits data signal processor TMS320VC5402 is implemented. IP, ARP, UDP etc. protocols in TCP/IP protocol stack are analyzed. A embeded network system based on TCP/IP is completed.
Platform: | Size: 46080 | Author: 葛强 | Hits:

[Windows DevelopTCP--Server

Description: tcp通信的客户端实现功能,具有很强的使用价值,适合windows编程的初学者-tcp client communications functionality, and highly value, windows programming suitable for beginners!
Platform: | Size: 8192 | Author: 马亮 | Hits:

[OtherTCP-IPTechnical_inDetails

Description: 本书介绍TCP/IP及其应用。TCP/IP是Internet上使用的协议,而Internet是世界上最大的互联网络。本书内容十分丰富,几乎涵盖了有关TCP/IP的各个方面,包括开放式通信模型、TCP/IP通信模型、IP网络中的命名和寻址机制、地址解析及反向地址解析协议、DNS域字服务器、WINS、地址发现协议、IPv6、IP网络中的路由协议(RIP、OSPF等)、互联网打印协议、LDAP目录服务、远程访问协议、IP安全与防火墙。本书介绍了如何为Windows 9x/NT配置TCP/IP;还介绍了如何使用TCP/IP应用程序,包括远程登录、FTP、Web浏览等。-this book about TCP/IP and its applications. TCP/IP is used on the Internet agreement and the Internet is the world's largest Internet. The book is rich in content, almost covering the TCP/IP in all its aspects, including open communication model, TCP/IP communications model, the IP network naming and addressing mechanisms, address resolution and reverse ARP, DNS Domain word servers, WINS, address discovery protocol, IPv6, IP Network Routing Protocol (RIP, OSPF, etc.), Internet printing protocol, LDAP directory services, remote access protocol, IP security and firewall. The book explains how to configure Windows 9x/NT TCP/IP; also described how to use the TCP/IP applications, including remote login, FTP and Web browsing.
Platform: | Size: 21622784 | Author: 绳鹏 | Hits:

[TCP/IP stackwindows-Client

Description: windows下远程控制客户端软件,从codeproject网站下载-windows under remote control client software, downloaded from the website codeproject
Platform: | Size: 79872 | Author: luoyq | Hits:

[Internet-NetworkTCP.chatroom

Description: 是WINDOWS网络编程的一个实例,用TCP协议,利用SOCKETS等相关知识开发,在网络环境中运行边能成功-Windows network programming is an example of using the TCP protocol SOCKETS related to the use of the knowledge developed in the network environment can be successful OPERATION
Platform: | Size: 3739648 | Author: fanminglei | Hits:

[TCP/IP stackTCP.UDP

Description: 网络通信,TCP/UDP高级编程,对于学习WINDOWS网络编程有帮助.-Network communication, TCP/UDP high-level programming, for learning network programming WINDOWS helpful.
Platform: | Size: 3933184 | Author: 林方键 | Hits:

[Windows CETCP

Description: Windows CE TCP 通信编程, EVC4.0-Programming Windows CE TCP communications, EVC4.0
Platform: | Size: 413696 | Author: 彭群 | Hits:

[Internet-NetworkTCP

Description: 用VC写的一个服务器和客户端通信的程序实像.只要懂得Winsock编程就很容易看懂了.参考书籍:Windows网络与通信程序设计-Using VC to write a server and the client communication process is like. As long as it is easy to understand Winsock Programming understood. Reference books: Windows Network and Communication Program Design
Platform: | Size: 54272 | Author: dskgo | Hits:

[TCP/IP stacktcp

Description: windows编程,写的tcp的服务器和客户端程序-windows programming, written by tcp server and client program
Platform: | Size: 133120 | Author: 俊马 | Hits:

[Internet-Networktcp

Description: windows 网络编程。tcp服务器端,客户段源代码。-windows network programming. tcp server-side, customer segment the source code.
Platform: | Size: 63488 | Author: amwfge | Hits:

[TCP/IP stackTCP-IP

Description: 本书介绍TCP/IP及其应用。TCP/IP是Internet上使用的协议, 而Internet是世界上最大的互联网络。本书内容十分丰富,几乎涵盖了有关TCP/IP的各个方面, 包括开放式通信模型、TCP/IP通信模型、IP网络中的命名和寻址机制、地址解析及反向地址解析协议、 DNS域字服务器、WINS、地址发现协议、IPv6、IP网络中的路由协议(RIP、OSPF等)、互联网打印协议、 LDAP目录服务、远程访问协议、IP安全与防火墙。本书介绍了如何为Windows 9x/NT配置TCP/IP; 还介绍了如何使用TCP/IP应用程序,包括远程登录、FTP、Web浏览等。 -Introduce the book TCP/IP and its application. TCP/IP is the Internet use agreement, and the Internet is the world
Platform: | Size: 21612544 | Author: 脉冲信号 | Hits:

[TCP/IP stackwindows-net

Description: 我们用得最多的协议是UDP和TCP,UDP是不可靠传输服务,TCP是可靠传输服务。UDP就像点对点的数据传输一样,发送者把数据打包,包上有收信者的地址和其他必要信息,至于收信者能不能收到,UDP协议并不保证。而TCP协议就像(实际他们是一个层次的网络协议)是建立在UDP的基础上,加入了校验和重传等复杂的机制来保证数据可靠的传达到收信者。关于网络协议的具体内容,可以参考专门介绍网络协议的书籍,这里直接探讨编程实现网络程序的问题。-We use the most agreement is UDP and TCP, UDP is not reliable transport services, TCP is a reliable transport service. UDP as point-to-point data transmission, the sender of data packing, has prepared to receive packets on the address and other necessary information for the receiver can not receive, UDP does not guarantee agreement. The TCP protocol is like (actually they are a level of network protocol) is built on the basis of UDP, joined the checksum ARQ complex mechanism to ensure that reliable data were communicated to the receiver. With regard to the specific content of network protocols, you can refer to specialized network protocols introduce the books, here to explore the direct network programming procedures.
Platform: | Size: 7971840 | Author: | Hits:

[TCP/IP stackTCP

Description: TCP连接实例,同时包含服务端和客户端,支持Unix和Windows双平台-Examples of TCP connections, both client and client services to support Unix and Windows dual-platform
Platform: | Size: 19456 | Author: 杨保国 | Hits:

[Internet-NetworkTCP

Description: 一个简单的TCP客户端和服务器端代码,服务器端接收数据并回传,VC编译,WINDOWS操作系统-A simple TCP client and server-side code, server-side data and return to receive, VC compiler, WINDOWS OS
Platform: | Size: 4096 | Author: recome | Hits:

[Windows Developethnet udp tcp

Description: Windows TCP UDP SERVER CLIENT 套接字通信程序。(Windows TCP UDP SERVER CLIENT SOCKET communication code)
Platform: | Size: 63488 | Author: Losserry | Hits:
« 12 3 4 5 6 7 8 9 10 ... 36 »

CodeBus www.codebus.net