登录
首页 » Windows Socket编程 » 服务器端通过socket()系统调用创建一个Socket数组后(即设定了接受连接客户的最大数目),与指定的本地端口绑定bind(),就可以在端口进行侦听list...

服务器端通过socket()系统调用创建一个Socket数组后(即设定了接受连接客户的最大数目),与指定的本地端口绑定bind(),就可以在端口进行侦听list...

于 2023-08-19 发布 文件大小:71.97 kB
0 203
下载积分: 2 下载次数: 1

代码说明:

服务器端通过socket()系统调用创建一个Socket数组后(即设定了接受连接客户的最大数目),与指定的本地端口绑定bind(),就可以在端口进行侦听listen()。如果有客户端连接请求,则在数组中选择一个空Socket,将客户端地址赋给这个Socket。然后登录成功的客户就可以在服务器上聊天了。-Server-side through the socket () system call to create a Socket after the array (that is set to receive the maximum number of connected customers), with a specified local port to bind bind (), will be able to listen on port listen (). If the client has to connect the request, then select an empty array Socket, the client address assigned to the Socket. And then sign in the success of customers can chat on the server.

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

发表评论

0 个回复

  • one worth studying download from the Internet!
    一个值得研究的下载程序, 来自于网络!-one worth studying download from the Internet!
    2022-02-12 06:44:18下载
    积分:1
  • cross platform information exchange, based on TCP/IP (UDP), does not need the se
    -跨平台信息交流,基于 TCP/IP(UDP),无需服务器,简单易用 可传送文件和文件夹 通讯数据采用 RSA/Blofish 加密-- cross platform information exchange, based on TCP/IP (UDP), does not need the server, simple Yi Yongke transmits the document and the folder communication data uses RSA/Blofish to encrypt
    2022-07-23 09:21:18下载
    积分:1
  • nio服务端代码
    JDK1.4 提供的无阻塞 I/O(NIO)有效解决了多线程服务器存在的线程开销问题,但在使用上略显得复杂一些。许多基于 NIO 的多线程服务器程序往往直接基于选择器(Selector)的 Reactor 模式实现。这种简单的事件机制对于较复杂的服务器应用,显然缺乏扩展性和可维护性, 而且缺乏直观清晰的结构层次。本文将通过一个基于事件回调的 NIO 多线程服务器的设计,试图提供一个简洁、直观、易于扩展的 NIO 多线程服务器模型。
    2022-02-16 06:36:06下载
    积分:1
  • 可用于局域网文件传输,多
    能够用于在局域网传输文件,采用多线程的方法,基于mfc的对话框类,比较实用-can be used in LAN file transfer, multi-threaded approach, based on the dialog box type mfc more practical
    2022-04-02 09:28:51下载
    积分:1
  • 网络五子棋,可以进行局域网和广域网的互联游戏,具有悔棋,保存,等功能。欢迎下载!...
    网络五子棋,可以进行局域网和广域网的互联游戏,具有悔棋,保存,等功能。欢迎下载!-network, LAN and WAN connectivity games, with he never cheat in spain, preservation, and other functions. Welcome to download!
    2022-09-05 23:05:03下载
    积分:1
  • udp agreement Simulation (transmitter)
    udp协议的仿真模拟程序(发送端)-udp agreement Simulation (transmitter)
    2022-02-25 12:32:42下载
    积分:1
  • 一包WinPcap层
    一个封装了Winpcap中二层函数的类-a package of Winpcap Layer-2 function category
    2023-04-25 20:05:04下载
    积分:1
  • 利用winsokets进行文件传输的例子
    利用winsokets进行文件传输的例子-use winsokets transfer files to the example
    2023-04-15 01:00:04下载
    积分:1
  • 得到当前计算机的MAC地址,已经生成可执行文件
    得到当前计算机的MAC地址,已经生成可执行文件-Get the current computer
    2022-05-13 05:24:54下载
    积分:1
  • foreigner writing a Web e
    老外写的一个网页邮件服务器,已经汉化,里面有简单的说明。-foreigner writing a Web e-mail servers, have finished, which has a simple explanation.
    2022-05-15 04:28:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载