Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - windows tcp
Search - windows tcp - List
站长写的Unix和Windows下的socket通用函数,简单易用。带Unix下的小例子
Date : 2026-01-09 Size : 7.71kb User :

在TCP/IP编程中,Windows环境里 完成端口 模型性能最高,最稳定,响应速度最快,该 源代码就是一个例子,值得研究哦。- In the TCP/IP programming, in the Windows environment completes the port model performance high, stablest, the speed of response is quickest, this source code is an example, is worth studying oh.
Date : 2008-10-13 Size : 87.45kb User : 罗家兄弟

DL : 0
基于WINDOWS消息的TCP编程-based on the Windows TCP news programming
Date : 2008-10-13 Size : 77.94kb User : 杨勇

用VB实现的TCP聊天程序,利用windows socket实现。-VB TCP Chat procedure, and use windows socket achieve.
Date : 2008-10-13 Size : 167.32kb User : 王佑超

这是一个可跨linux、windows平台的TCP/IP通讯程序-This is a cross - linux, windows platform TCP / IP communication procedures
Date : 2008-10-13 Size : 343.2kb User : ly

windows下的socket编程,例子,可以发送tcp,udp报等,适合于初学者看看,里面共有server和client的详细实现-windows under the socket programming, for example, can send tcp, udp reported, suitable for beginners look at the total inside the server and client to achieve detailed
Date : 2008-10-13 Size : 26.71kb User : 如果能

在盒子里得到了这么多朋友无私的帮助,真的表示感谢!看到很多朋友在寻求多线程网络传输代码,为此,从我开发的网络棋牌游戏中整理出这个献给大家:) 开发环境:Delphi7.0+WinXP,没用其他控件(除了Delphi自带的Indy) 使用协议:TCP/IP 客户端一次发送65000字节的包,服务端负责组装并处理数据粘连。 使用ReadBuffer(),Send()函数来接收发送Buffer内字节,这样作的目的是使程序具有更好的灵活性。你可以自定义Buffer内那些字节的含义,例如是字符串、图像、声音、命令等等。 文件的多线程读写采用windows内存映像技术。 关键的服务器处理函数IdTCPServer1Execute(AThread: TIdPeerThread)是非线程安全的。如果使用临界区,那么多线程将在这里串行执行,严重降低多线程效率。对此,我采用一个简单的办法,具体可以看程序。-be in the box so many friends selfless help and really grateful! Many friends in the search for multi-threaded network transmission code, for from my development of the network and dominoes game sorted out the dedicated people :) development environment : Delphi7.0 WinXP, useless other controls (except for the Delphi Indy own) use agreement : TCP / IP client to send a 65,000-byte packets, the server is responsible for assembling and processing data adhesion. Use ReadBuffer (), Send () function to receive this Buffer byte, for the purpose of this is to make procedures better flexibility. You can define Buffer byte within the meaning of those, such as strings, images, sounds, etc. order. The documents used to read and write multi-threaded windows memory mapping technology. Key server functio
Date : 2008-10-13 Size : 53.43kb User : tom

本源码是利用Winsock Api写的一款基于TCP/IP协议的通讯软件 对新手学习Windows Socket Api 是很好的资料-the source is the use of Winsock Api write-based TCP / IP communications software for novice Windows Socket Api learning is a very good information
Date : 2008-10-13 Size : 656.41kb User : 叶子

此程序实现的是在windows平台下 进行基于tcp\\ip的即时网络通信程序-this program is the windows platform based tcp \\ ip instant network communication procedures
Date : 2008-10-13 Size : 607.57kb User : zhaodetao

windows网络通讯和编程中基础的TCP中的C/S模式,实现服务器和客户端的交流。-windows network communication and programming based on the TCP C / S mode, server and client communication.
Date : 2008-10-13 Size : 20.29kb User : winsun

windows 下的网络数据解析工具,vc++环境,支持tcp,upd,port选择-windows of network data analysis tool vc environment to support tcp, upd. port options
Date : 2008-10-13 Size : 235.85kb User : Lotus

本书为《WINDOWS 网络编程》的源代码,主要覆盖了WINDOWS 95/98/2000/CE的网络开发。详细讲解了NETBIOS和TCP/IP协议,适合于中高级程序员和网络管理人员进行编程设计的参考。-the book "Network Programming Windows" source code, WINDOWS main 95/98/2000/CE coverage of the network development. Explained in detail NETBIOS and the TCP / IP protocol. suitable for middle - and high-level programmers and network management program for the reference design.
Date : 2008-10-13 Size : 7.69mb User : 周放

windows平台下的libnids,最新版本libnids 1.19 for win32,内有VC++工程.可以根据需要修改源码,也可以利用库文件方便地重组TCP等,进行协议还原,构造自己的网络入侵检测系统.-windows platform under the libnids. libnids latest version 1.19 for win32, VC works there. may need to modify the source codes, it can also be used to facilitate the reorganization of documents such as TCP, conduct an agreement reduction, construction of network intrusion detection system.
Date : 2008-10-13 Size : 282.85kb User : yubai

tcp和udp的传输例程,使用windows socks编程实现-tcp and udp transmission routines, the use of windows socks Programming
Date : 2008-10-13 Size : 108.11kb User : starts

Windows visual Basic TCP server and client test source code-visual Basic Windows TCP server and client test source code
Date : 2008-10-13 Size : 21.34kb User : Latis

是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
Date : 2008-10-13 Size : 80.57kb User : fanminglei

在WINDOWS下利用VC++写的支持TCP I/O多路复用,UDP 组播和串口读写的通信程序客户端!-in Windows using the VC was made with the support of TCP I / O multiplexers. UDP Multicast and serial communication program of literacy client!
Date : 2008-10-13 Size : 12.83kb User : OneGun

DL : 0
用VC写的一个服务器和客户端通信的程序实像.只要懂得Winsock编程就很容易看懂了.参考书籍:Windows网络与通信程序设计
Date : 2008-10-13 Size : 4.88kb User : dskgo

DL : 0
windows 网络编程。tcp服务器端,客户段源代码。
Date : 2008-10-13 Size : 62.36kb User : amwfge

 

操作系统课程设计任务书


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

应用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);

.

.

.

.

 


Date : 2008-11-21 Size : 54.5kb User : lenjear
« 12 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.