登录
首页 » Windows Socket编程 » 面向连接的服务器流程中,必须设置服务器套接字为监听状态;而客户机则是主动连接。无连接客户机和服务器。无连接客户机和服务器在调用的函数方面没有区别,区别在于服务器...

面向连接的服务器流程中,必须设置服务器套接字为监听状态;而客户机则是主动连接。无连接客户机和服务器。无连接客户机和服务器在调用的函数方面没有区别,区别在于服务器...

于 2022-03-13 发布 文件大小:23.56 kB
0 228
下载积分: 2 下载次数: 1

代码说明:

面向连接的服务器流程中,必须设置服务器套接字为监听状态;而客户机则是主动连接。无连接客户机和服务器。无连接客户机和服务器在调用的函数方面没有区别,区别在于服务器一般先启动recvfrom等待客户机的数据。客户机和服务器的通信过程为客户向服务器发送数据,服务器收到数据后给予应答,通信结束。-connection-oriented server process, you must set up to monitor server socket state; While the client is active connector. Without connecting client and server. Without connecting client and server in a function called no distinction, the general difference is the server for first launching recvfrom client data. Client and server communication process for clients to send data to the server, the server data received responses and communication end.

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

发表评论

0 个回复

  • P2P c++ sdk
    P2P dll c++ ,  static emReturnType SetAppType(emAppType AppType);//设置程序类型,服务器emAppType_Server或者客户端emAppType_Client  static emReturnType SetClientCallback(IMsgCallback *pMsgCallback);//设置回调类,回调类继承IMsgCallback接口  static emReturnType Startup();//开启网络  static emReturnType Cleanup();//关闭网络  //Server  以下函数是服务器调用  static emReturnType BeginService(unsigned short nPort);//如果是服务器,调用该函数开启服务,nPort:端口号  static emReturnType EndService();//服务器退出的时候,调用该函数关闭服务  //Client  以下函数是客户端调用  static emReturnType Logon(LOGONINFO* pLogonInfo);//函数登录服务器。pLogonInfo:登录信息,详细见P2PHeaderDef.h->LOGONINFO  static emReturnType Logout();//登出服务器  static emReturnType ConnectAnchor(CLIENTINFO* pClientInfo);//连接主播,该函数是用户调用  static emReturnType SendP2PMSG(CLIENTINFO* pClientInfo, char* pszMsg, int nMsgLen);//发送P2P消息,pClientInfo,要发送的客户信息,如果是用户,则pClientI
    2022-02-03 19:54:38下载
    积分:1
  • delphi源代码 / 局域网可以选择音频格式的ip电话,每秒数据量不大于7k...
    delphi源代码 / 局域网可以选择音频格式的ip电话,每秒数据量不大于7k -/ LAN can choose audio format ip phones, the volume of data per second than bells
    2022-03-05 01:34:37下载
    积分:1
  • 用Java实现的网络蚂蚁,功能强大,方便上传下载,断点续传等操作...
    用Java实现的网络蚂蚁,功能强大,方便上传下载,断点续传等操作-using Java network ants, powerful, easy uploading and downloading, HTTP, etc
    2022-09-21 17:35:03下载
    积分:1
  • Trinidad encompassing the development of all the information, the development of...
    含括了 MC35i开发的全部资料,是开发GPRS的好帮手,希望对各位有用!-Trinidad encompassing the development of all the information, the development of GPRS is a good helper, and I hope to you and useful!
    2022-03-16 17:51:25下载
    积分:1
  • 动态访问网络服务器的电影分类和索引数据这一部分…
    动态获取网站服务器的影片分类与索引数据本程序对此部分以测试数据代替)。将影片分类与索引数据以与文件系统类似的方式展示给用户。与操作系统集成,简单、易用。为方便用户使用,需集成到IE浏览栏及工具栏中。-dynamic access to the Web server film classification and indexing data this part of the process to replace the test data). Film Classification and will be indexed data file system with a similar manner to display to users. Integration with the operating system, a simple and easy to use. For the convenience of users, the need to integrate Internet Explorer toolbar and column.
    2023-08-26 01:50:04下载
    积分:1
  • window下,固定结构格式的数据文件进行网络数据传输,经过译,很实用...
    window下,固定结构格式的数据文件进行网络数据传输,经过编译,很实用 -window, the fixed structure of data file formats for network data transmission, through the compiler, it is practical
    2023-03-10 13:55:04下载
    积分:1
  • Element is a network monitoring program, to be able to monitor network traffic a...
    也是一个网络监控元程序,能够监控到网络中的流量等信息-Element is a network monitoring program, to be able to monitor network traffic and other information
    2023-03-10 13:15:04下载
    积分:1
  • vs聊天软件以及源代码。MFC的,可以实现多用户的。
    vs聊天软件以及源代码。MFC编程的,可以实现多用户的。-vs chatting tools
    2022-08-21 03:26:07下载
    积分:1
  • C#聊天序!
    C#聊天程序!-C# chat program !
    2023-08-07 16:55:03下载
    积分:1
  • 一个socket实例代码.包括客户端和服务端,适合初学者.
    一个socket实例代码.包括客户端和服务端,适合初学者.-A socket example code. Including client and server, suitable for beginners.
    2022-03-23 08:24:13下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载