Git Product home page Git Product logo

chatroom's Introduction

chatRoom

dayOne

  1. 首先实现一个简单的聊天室服务器,基于之前所学的Linux网络编程的知识
  2. 客户端可以自己实现,也可以直接使用nc命令或telnet命令来充当客户端

dayTwo

学习qt,并实现一个能和服务端连接上并且能交流的一个TCP客户端demo

Linux环境下运行的TCP客户端:

Windows7环境下运行的TCP客户端:

与dayOne实现的服务器一起运行:

dayThree

学习qt,然后写出一个图形界面的客户端,暂时先不考虑没不美观、只考虑功能实现

Linux环境下运行的客户端:

Windows7环境下运行的客户端:

与dayOne实现的服务器一起运行:

dayFour

今天把注意力放在服务器,之前写的服务器有点看不过去,现在写一个reactor模式的聊天服务器,这样服务器的并发性能更好

dayFive

今天继续修改dayFour写的服务器,加上日志的功能 为了方便(偷懒),日志采用开源库spdlog

daySix

今天再把重心转向客户端,我们都知道一般的聊天软件肯定都要账号和密码,我们今天就实现它

ChatRoom与Chat+mysql中的服务器一起运行:

(Chat+MySQL是由之前的服务器加上了MySQL数据库的操作,还不完善)

注意!

  1. 在dayFive时添加的依赖库要自行添加,不然直接make会报错
  2. 在客户端中要注意可能要修改IP地址,这取决于你怎么实验,我的服务器端已经部署到阿里云服务器上了,IP地址为120.79.214.120
  3. 由于我还在学习当中,代码可能不怎么好看,而且客户端实在有些难看。不过如果你喜欢的话,可以顺手点一下star。

chatroom's People

Contributors

liu-jianhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.