登录
首页 » Windows Socket编程 » 服务器程序完成以下功能:创建套接字监听…

服务器程序完成以下功能:创建套接字监听…

于 2022-02-14 发布 文件大小:65.32 kB
0 220
下载积分: 2 下载次数: 1

代码说明:

服务器程序要完成以下功能:创建监听Socket进行监听,当有客户端请求连接时,建立一个新的接收Socker处理这个客户的数据发送与接收;接受客户端发来的数据,并向客户端返回相应信息,本程序向客户端返回信息为接收到的信息;将接受的信息通过串口1发送出去-Server program to complete the following functions: Create Socket eavesdropping eavesdropping, when client requests a connection, the establishment of a new deal with the customers to receive Socker send and receive data accept client data sent to the client to return to the corresponding information, the procedure to return information to the client to receive the information will accept the information sent through the serial port 1

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

发表评论

0 个回复

  • 新邮件,嘿,有点简单,容易
    实时监控邮箱新邮件,哎,简单的东西就是好用的-new mail, hey, something is simple and easy
    2022-02-25 18:15:27下载
    积分:1
  • Windows Socket API 使用经验
    Windows Socket API 使用经验-Windows Socket API experience
    2023-08-14 03:45:03下载
    积分:1
  • automatically open the designated site, opened at the same time many, if you are...
    自动打开指定的网址,同时打开多个,如果有兴趣你不妨-automatically open the designated site, opened at the same time many, if you are interested to take a look
    2022-08-26 05:57:42下载
    积分:1
  • 用MFC实现局域网内点对点的大文件传输
    用MFC实现局域网内点对点的大文件传输-LAN with MFC within the point-to-point file transfer
    2022-12-26 12:20:04下载
    积分:1
  • 用asp.net生成随机验证码 用asp.net生成随机验证码
    用asp.net生成随机验证码 用asp.net生成随机验证码-using random test generation Asp. Net yards with Asp. Net randomly generated test code
    2022-08-04 01:45:32下载
    积分:1
  • serverudp
    serverUDP -serverUDP
    2022-04-27 14:53:31下载
    积分:1
  • lan中的端口映射客户端
    lan中的端口映射客户端程序-lan port mapping of client
    2022-12-01 01:40:03下载
    积分:1
  • 通过与服务器相连,设置各种属性,实现即时联系(服务器端)...
    通过与服务器相连,设置各种属性,实现即时联系(服务器端)-Connected with the server, set the various properties, to achieve real-time connection (server side)
    2022-07-17 08:12:51下载
    积分: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
  • A simple Windows 95/98/ME/NT4/2000/XP CTRL client for administration of XMail se...
    A simple Windows 95/98/ME/NT4/2000/XP CTRL client for administration of XMail servers.-A simple Windows 95/98/ME/NT4/2000/XP CT RL client for administration of XMail servers.
    2023-07-26 02:00:03下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载