Giter Site home page Giter Site logo

shxjjstianx / learnsocket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zack-rt/learnsocket

0.0 0.0 0.0 3.29 MB

tcp/ip socket 高级编程课程代码,地址:https://www.bilibili.com/video/BV12E41197zn

C 80.47% CMake 2.26% Makefile 6.31% C++ 10.97%

learnsocket's Introduction

tcp/ip socket 高级编程课程笔记与代码

简介

这门课程虽然视频画质音质一般,但隔着屏幕就能感受到老师的功力深厚。vim熟练使用,man查阅文档快速编写代码;gcc报错结合gdb快速定位bug;先明确需求功能与再实现API的测试驱动开发**。理论结合实操,全程看下来收获良多。

一些知识点的整理

  • 主机字节序、网络字节序以及大端小端的判断方式。
  • 回射客户服务器:
    • 单进程一对一
    • 多进程实现并发
    • 解决粘包问题
    • IO复用实现并发:select/poll/epoll
    • POSIX多线程实现并发
  • 进程间通信与常用的IPC
    • 共享内存
    • 信号量
    • 消息队列
    • 条件变量

几个小综合

  1. 基于UDP实现的P2P聊天室
  2. 基于共享内存与信号量实现FIFO队列
  3. 线程池:生产者消费者问题的实际应用

目录

前5P为TCP/IP理论部分,没有做笔记与代码,socket编程部分文件夹名与分p对应。

learnsocket's People

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.