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

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

于 2023-08-19 发布 文件大小:71.97 kB
0 37
下载积分: 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 个回复

  • 696524资源总数
  • 103920会员总数
  • 65今日下载