登录
首页 » Windows Socket编程 » 多进程并发服务器。该程序等候客户连接,一旦连接则显示客户的地址,接着接收该客户的名字并显示。然后接收来自该客户的信息(字符串)。每当收到一个字符串,则显示该字符...

多进程并发服务器。该程序等候客户连接,一旦连接则显示客户的地址,接着接收该客户的名字并显示。然后接收来自该客户的信息(字符串)。每当收到一个字符串,则显示该字符...

于 2022-01-28 发布 文件大小:1.49 kB
0 167
下载积分: 2 下载次数: 1

代码说明:

多进程并发服务器。该程序等候客户连接,一旦连接则显示客户的地址,接着接收该客户的名字并显示。然后接收来自该客户的信息(字符串)。每当收到一个字符串,则显示该字符串,并将字符串反转,再将反转的字符发回客户。之后,继续等待接收该客户的信息直至该客户关闭连接。服务器具有同时处理多客户的能力。-more complicated process server. The procedure for connecting customers, once the connection is shown to the customer address, and then receive the customer"s name and display. Before receiving from the customer"s information (string). Whenever received a string, it shows that the string, the string will be inverted, and then reverse the characters back customers. Continue, after waiting for the customer to receive the information until the customer close the connection. Servers simultaneously with the ability to more customers.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 在线时间精灵 1.开机自动运行(可选),监视是否已连接上网络(这里的连接均指RAS拨号连接); 2.记录每次连接的起始和持续时间; 3.显示本次连接的持续时间、...
    在线时间精灵 1.开机自动运行(可选),监视是否已连接上网络(这里的连接均指RAS拨号连接); 2.记录每次连接的起始和持续时间; 3.显示本次连接的持续时间、本日在线时间、本月在线时间; 4.保存并显示某日至今的在线时间明细,显示每日合计在线时间,每月合计在线时间和合计在线时间; 5.定期清除在线时间记录; 6.连接后定时保存一次连接时间http://bcdliang.vicp.net-online time, a genie. Boot automatic operation (optional), whether the surveillance has been connected to the Internet (the connection here refers to both dial-up RAS); 2. Records of the initial connect time and duration; 3. The link shows the duration of the day-time, this month online time; 4. the preservation and display of a certain date and detailed time-line showing the daily total online time, the monthly total online time, and the total online time; 5. regular removal of online time records; 6. after connecting to preserve a regular time to connect http:// bcdliang.vicp.net
    2022-06-15 17:24:07下载
    积分:1
  • 完成端口的例子,Client+Server,适合新手学习
    完成端口的例子,Client+Server,适合新手学习-Examples of the completion of the port, Client+ Server, suitable for novice to learn
    2023-01-27 19:10:03下载
    积分:1
  • 最近两年出版的一本网络书籍的源码,其中很多代码非常有用,包括IOCP、P2P等,强烈推荐,也是不错的Visual C++的学习代码。...
    最近两年出版的一本网络编程书籍的源码,其中很多代码非常有用,包括IOCP、P2P等,强烈推荐,也是不错的Visual C++的学习代码。-Published in the past two years, a network programming book source, many of which are very useful code, including the IOCP, P2P, etc., strongly recommend, is also a good Visual C++ Learning code.
    2022-01-22 10:56:04下载
    积分:1
  • 单线文件传输,MFC,使用onreceive和onsend
    单线程文件传输,MFC,使用onreceive和onsend-Single-threaded file transfer, MFC, use the onreceive and onsend
    2022-03-25 02:08:24下载
    积分:1
  • Midas的远登陆窗口太简单了,不能让用户选择要连接的服务器的地址 不过好在 通过以下的方法你可以修改这个登陆窗口为你自己非常喜欢 的风格,当然也因此可以记录...
    Midas的远程登陆窗口太简单了,不能让用户选择要连接的服务器的地址 不过好在 通过以下的方法你可以修改这个登陆窗口为你自己非常喜欢 的风格,当然也因此可以记录下别人的登陆密码哦 unit utLogIn interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,-Midas remote login window too simple and not to let the users choose to connect to the server addresses However Fortunately, the adoption of the following ways you can change the landing window for your very own favorite style, of course, it can also record other people"s passwords landing Oh unit utLogIn interface uses Windows Messages , SysUtils, Variants, Classes, Graphics, Controls, Forms,
    2022-12-17 09:40:03下载
    积分:1
  • 打开源代码的协议栈,翻译下
    一个开源的sip协议栈,在vc6.0下编译通过,无警告。- Opens the source the sip agreement stack, translates under vc6.0 passes, does not have the warning.
    2022-02-13 13:19:33下载
    积分:1
  • 点对点序,使用命名管道进行通信
    点对点程序,使用命名管道进行通信-point-to-point, the use of named pipes for communication
    2022-07-14 18:50:40下载
    积分:1
  • 自由投票调查系统1.0 (2004
    自由投票调查系统1.0 (2004-5-30,WINDOWS,189KB,下载19次-free poll System 1.0 (2004-5-30, WINDOWS, 189KB download 19
    2022-01-21 05:56:55下载
    积分:1
  • 对网络序Winsock。是一个服务器
    这是一个关于winsock的网络编程的程序。是一服务器端VC视频会议代码,希望对你们有用。-winsock on the network programming procedures. Is a server-side code VC Video Conference, and I hope to you useful. Ha ha!
    2022-10-26 19:20:03下载
    积分:1
  •  各个线任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线一开始的任务是从文件的0位置开始下载一直到72908位置处。线1每次下载...
     各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。   在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
    2022-03-20 03:50:55下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载