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

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

于 2022-04-16 发布 文件大小:2.52 kB
0 221
下载积分: 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 个回复

  • 专门用于编辑IP地址的编辑框
    专门用于编辑IP地址的编辑框-specialized IP addresses for editing the editorial Box
    2022-09-15 19:20:03下载
    积分:1
  • 在没有调用上传的组件
    在ASP中调用的无组件上传-in ASP components without calling upload
    2022-02-06 17:50:23下载
    积分:1
  • 中间商经营系统:shuang 爽啊,超好的系统,中间商经营系统
    中间商经营系统:shuang 爽啊,超好的系统,中间商经营系统-Middlemen operating system: shuang爽啊, super good system, middlemen operating system
    2022-02-03 23:49:30下载
    积分:1
  • 使用java实现的RFC1945 http1.0协议。所有面向对象设计严谨按照RFC 1945协议中的描述。源代码逾4000行。提供给Java网络编程初学者学习...
    使用java实现的RFC1945 http1.0协议。所有面向对象设计严谨按照RFC 1945协议中的描述。源代码逾4000行。提供给Java网络编程初学者学习-Java achieved using RFC1945 http1.0 agreement. All well-structured object-oriented protocol in RFC 1945 in accordance with the description. The source code of more than 4000 lines. Java network programming to beginners learning
    2022-09-18 21:10:03下载
    积分:1
  • A LAN can send messages and documents instant messaging program. Do not need ser...
    一个在可以在局域网内发送消息和文件的即时通讯程序。不需要服务器,点对点的通讯。传输文件的速度比windows的共享文件快!-A LAN can send messages and documents instant messaging program. Do not need servers, point-to-point communications. Transfer files faster than windows shared files fast!
    2023-01-18 06:00:04下载
    积分:1
  • 获取局域网内IP List 及 用户列表
    获取局域网内IP List 及 用户列表-Access to the LAN IP List and User List
    2022-05-07 05:46:38下载
    积分:1
  • 本系统是网络上的个人共享文件系统,支持多人注册使用,可在线上传文件、管理自己的文件,还可设置共享权限,便于将自己的文件同其它人分享,使用方法同资源管理器。管理员
    本系统是网络上的个人共享文件系统,支持多人注册使用,可在线上传文件、管理自己的文件,还可设置共享权限,便于将自己的文件同其它人分享,使用方法同资源管理器。管理员可在线管理注册帐号,支持每个用户的单独空间大小设置。特色:登录时验证码控制安全登录;支持大文件及多文件上传;可共享文件,并可设置读写权限;支持文件搜索;每个人可单独设置空间大小。需.Net环境支持。-the network system is the personal file-sharing system to support people registered, and can be used to upload documents online, manage their documents, but also set up shared jurisdiction, to facilitate their documents to share with other people, to use the same resources manager. Administrators can register online account management and support each user a separate space set size. Characteristics : login validation code control of the security login; Support for large files and multiple file uploads; File sharing and may set up literacy competence; Supporting documents search; Everyone can set up separate space size. Need. Net environmental support.
    2022-03-28 18:40:45下载
    积分:1
  • Netfilter 阻断网络例子
     Ubuntu12.4环境下,使用Netfilter 阻断本地IP地址:127.0.0.1,根据Makefile文件编译后生成的文件加载到内核即可,然后查看内核日志。                                                                                                                                                                                                                              
    2022-03-03 23:06:09下载
    积分:1
  • 学习组播的小例子
    学习套接字网络编程,组播编程的很好的例子,有一定的指导意义,里面有发送和接收程序,并且发送的内容单独定义了一个类
    2022-06-28 19:37:30下载
    积分:1
  • 开放源码的ldap系统
    开放源码的ldap系统-Ldap system of openning source
    2023-01-16 23:55:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载