登录
首页 » 套接字网络编程 » c++ socket编程实例(含服务端和客户端及日志写入)

c++ socket编程实例(含服务端和客户端及日志写入)

于 2022-04-16 发布 文件大小:2.52 kB
0 222
下载积分: 2 下载次数: 1

代码说明:

本代码是c++ socket编程实例。包含服务端和客户端代码,可以实现客户端发送消息,服务端接收消息并写入日志。server.cpp为服务端。client.cpp为客户端。首先,需要准备好C++环境。先编译运行server.cpp,显示:“server is start,waiting for client.”表示启动成功。再编译运行client.cpp,这时再看服务端,显示:“Hello, This is client whg”,表示收到客户端发来的消息。

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

发表评论

0 个回复

  • 通过snmp得到网络信息
    通过snmp得到网络信息-snmp been through Network Information
    2023-05-04 02:05:04下载
    积分:1
  • This is an e
    这是一个关于网络硬件的电子书,包括了一些基本网络硬件的配置和说明,比如路由器,网卡,交换机,等等,同样很适合新手-This is an e-book on the network hardware, including some basic configuration of network hardware and instructions, such as routers, network cards, switches, and so on, equally suitable for novices
    2022-05-19 20:33:45下载
    积分:1
  • 都市星空BBS系统 v1.1(SQL)
    都市星空BBS系统 v1.1(SQL)-City Star BBS System v1.1 (SQL)
    2023-06-24 02:05:04下载
    积分:1
  • 2022-01-23 11:02:30下载
    积分:1
  • 使用vb程序开发的一个浏览器范例程序,很简单,适用于初学者...
    使用vb程序开发的一个浏览器范例程序,很简单,适用于初学者-Vb program development using the example of a browser procedure is very simple for beginners
    2022-04-29 22:15:31下载
    积分:1
  • H_conly站长管理助手v1.1版
    H_conly站长管理助手v1.1版--可以在线管理网页文件的多功能站长工具。 相对于1.0版,该版做了如下更改: 1、添加支持xml和xsl的文本编辑功能(之前大意漏掉的) 2、站长工具箱改为站长百宝箱,添加了“整站备份/恢复工具”、“HTML网页在线编辑器”、“HTML代码运行器”和“网页颜色代码全集”这四个工具【其中,“整站备份/恢复工具”的初始密码为admin】 3、原“网站提交入口网址收集”更新至2009年8月26最新地址。每一个地址都是我亲自验证过的,没有无效地址。-H_conly owners Management Assistant v1.1 Edition- available online multi-functional web document management tool for owners. Relative to the 1.0 version, the version made the following changes: 1, add support for xml and xsl text editing features (before the effect missed) 2 and Webmasters Toolbox changed owners treasure box, add a " full stop Backup/Restore Tools " ," HTML pages online editor " ," HTML code to run devices " and" web page color code Collected Works " of the tool 【Among them," the whole station backup/recovery tool " initial password for the admin】 3, the original" submit your site portal site to collect the " Update to 2009 August 26 current address. I personally ea
    2022-02-10 06:47:26下载
    积分:1
  • 鲁门网站系统,是整站的源代码
    鲁门网站系统,是整站的源代码-Lu portal site system, is the whole point of source code
    2022-03-22 15:29:13下载
    积分:1
  • DELPHI实现TCP CLIENT
    通过多线程方式实现TCP连接,tthread,tcp client,2进制数据传送,可方便实现各种工业控制协议MODBUS TCP,程序不卡
    2022-05-20 12:12:41下载
    积分:1
  • 一个简单的UDP网络聊天工具,包含客户端和服务器。
    一个简单的UDP网络聊天工具,包含客户端和服务器。-A simple UDP network chat tool that includes client and server.
    2022-08-22 12:30:54下载
    积分:1
  • 浙大网络编程课全套资料,其中包括课件,相关软件,八个编程例子,课后作业,实验与应用等五个部分。希望对大家学习网络编程有所帮助。开发环境为VC 6++ MFC...
    浙大网络编程课全套资料,其中包括课件,相关软件,八个编程例子,课后作业,实验与应用等五个部分。希望对大家学习网络编程有所帮助。开发环境为VC 6++ MFC-Zheda a full set of network programming classes, including courseware and related software, eight examples of programming, after-school work, experiments and applications of five parts. Everyone would like to learn network programming help. Development environment for VC 6++ MFC
    2022-04-12 11:12:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载