登录
首页 » Windows Socket编程 » 基于WINSOCK的信息交互

基于WINSOCK的信息交互

于 2022-03-19 发布 文件大小:131.43 kB
0 173
下载积分: 2 下载次数: 1

代码说明:

通过serverSocket.Accept()来接收客户Socket的连接请求,在这里用循环可以实现该线程实时侦听,而不是只侦听一次。当程序运行serverSocket.Accept()时,会等待,直到有客户端Socket发起连接请求时,获取该客户Socket,如上面的clientSocket。在这里我用多线程来实现与多个客户端Socket的连接和通信,一旦接收到一个连接后,就新建一个线程,执行ReceiveData功能来实现信息的发送和接收

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

发表评论

0 个回复

  • 这是我们开发一个报警服务, 从串口读报警, 用TCP把报警发送到客户端, 包括完成端口通讯, ADO数据库访问, 串口通讯等类, 数据库表我就不提供了, Ala...
    这是我们开发一个报警服务, 从串口读报警, 用TCP把报警发送到客户端, 包括完成端口通讯, ADO数据库访问, 串口通讯等类, 数据库表我就不提供了, AlarmService /RegServer 安装服务, AlarmService /Start 开始服务, AlarmService /Stop 结束服务, AlarmService /UnRegServer 卸载服务-This is our development of an alarm service, alarm time from the serial port, using TCP to the police sent to the client, including the completion of port communications, ADO database access, serial communications, and other categories, database table I do not provide, AlarmService/RegServer installation services, AlarmService/Start to start service, AlarmService/Stop the end of services, AlarmService/UnRegServer unloading services
    2022-08-13 03:44:01下载
    积分:1
  • 串口发送接收数据,串口发送接收数据
    串口发送接收数据,串口发送接收数据 -Sending and receiving serial data, serial port serial port to send receive data to send receive data
    2022-02-04 03:37:02下载
    积分:1
  • NETI@home is an open
    NETI@home is an open-source software package, named after the widely popular http://setiathome.ssl.berkeley.edu/, that collects network performance statistics from end-systems. It has been written for and tested on the Windows, Linux, Mac OS X, and Solaris operating systems, with testing for other operating systems to be completed soon. NETI@home is designed to run on end-user machines and will collect various statistics about Internet performance. These statistics will then be sent to a server at the Georgia Institute of Technology (Georgia Tech), where they will be collected and made publicly available. We believe that this tool will give researchers much needed data on the end-to-end performance of the Internet, as measured by end-users. Our basic approach is to sniff packets sent to and received by the host and infer performance metrics based on these observed packets. NETI@home users are able to select a privacy level that will determine what types of data will be gathered, and wh
    2023-09-09 23:40:03下载
    积分:1
  • 局域网内文件接收和发送,可以同时向发送多个文件或者文件夹,序中多处采用多线技术...
    局域网内文件接收和发送,可以同时向发送多个文件或者文件夹,程序中多处采用多线程技术-LAN to send and receive documents can be sent simultaneously to multiple files or folders, multiple procedures multi-threading technology
    2023-06-17 21:30:05下载
    积分:1
  • 一个简单的员工管理系统,可以体现出员工现在状态,是否劳动力。...
    一个简单的员工管理系统,可以体现出员工现在状态,是否劳动力。-a simple staff management system that can reflect the state employees now, whether labor.
    2023-02-27 05:05:03下载
    积分:1
  • FTP Connecting To and Retrieving FTP File Listings
    FTP Connecting To and Retrieving FTP File Listings
    2022-01-26 06:23:28下载
    积分:1
  • WINsocket TCP/IP协议套接字,收发数据
    WINsocket TCP/IP协议套接字,收发数据程序-WINsocket TCP/IP socket, procedures for data transceiver
    2023-02-07 09:45:03下载
    积分:1
  • 简单的ftp软件,实现基本的功能,开发环境vb6.0
    简单的ftp软件,实现基本的功能,开发环境vb6.0-Simple ftp software to realize the basic functions, development environment VB6.0
    2022-03-24 06:12:31下载
    积分:1
  • very good source code procedures
    非常好的源代码程序-very good source code procedures
    2022-08-24 15:54:57下载
    积分:1
  • FLASH素材源码
    FLASH素材源码-卡通人物-口袋怪物?ㄍㄈ宋?口袋怪物?ㄍㄈ宋?口袋怪物?ㄍㄈ宋?口袋怪物卡通人物-口袋怪物-FLASH source material-cartoon characters-pocket monster cartoon c haracters-pocket monster cartoon c haracters-pocket monster cartoon c haracters-pocket monster cartoon characters-pocket monster
    2022-12-02 11:40:03下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载