Coder Social home page Coder Social logo

bytedance_hw4's Introduction

Bytedance_hw4

【介绍】

参考开源项目摸索了一下,实现自定义应用层协议

  • 定义了协议的规范
  • 实现协议的解析器
  • 使用 Node.js 的 net 模块实现两个进程基于该协议进行通信
  • 使用了inquirer进行用户交互

demo

【使用方法】

  1. 使用进入文件夹
  2. node server.js: 启动server
  3. node client.js: 启动client
  4. 根据提示,发送消息
  5. 在server上查看
  6. control +c退出

bytedance_hw4's People

Contributors

lulyany avatar

Watchers

 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.