• Stars
    star
    439
  • Rank 95,600 (Top 2 %)
  • Language
  • License
    Creative Commons ...
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

服务器编程指南

在线阅读:https://liuhaohua.com/server-programming-guide/

这个教程写给具有一定的 C++ 程序设计基础,但对服务器编程还不太了解的读者。

本教程会尽量涵盖服务器编程中的常用知识,但并不会深入讲解,而是通过简单的例子让你可以快速运行起来。如果希望更深入地了解相关知识,本教程会提供相关参考资料以供学习。通过这个教程,你将会学习到:

  • 程序的编译、链接与装载基础知识
  • 如何使用现代的构建系统(Build System)来组织构建一个中小型 C++ 项目
  • 如何在 C++ 项目中使用第三方库
  • 如何使用常见的多线程、多进程编程范式
  • 如何通过 RPC 库将程序包装为服务器程序
  • 如何使用测试库对程序进行测试
  • 如何使用日志库记录程序运行中的关键信息
  • 如何使用指标系统暴露程序运行的关键指标
  • 如何使用调试器调试(运行中的)程序
  • 如何处理程序崩溃以及使用调试器恢复现场
  • 如何部署一个服务器程序
  • 如何快速地上手一个他人编写的服务器程序
  • 如何与他人进行合作

尽管本教程以 C++ 为例,但会尽量抽象出服务器编程的常见范式以及概念,帮助你在以后进行快速的知识迁移。

More Repositories

1

yatcpu

Yet another toy CPU.
Scala
78
star
2

sysu-thesis-typst

中山大学学位论文 Typst 模板
Typst
49
star
3

rdmapp

C++ interfaces for RDMA access
C++
40
star
4

flapga-mario

FlaPGA Mario - A flappy-bird like video game implemented in Verilog for Basys3
Verilog
27
star
5

autograder-server

Go
21
star
6

ucxpp

C++
17
star
7

autograd

A simple demonstration of how PyTorch autograd works
C++
16
star
8

chcore-lab-mospi-2020

My solution to the labs of the book "Modern Operating System: Principle and Implementation" by Haibo Chen
C
16
star
9

hcache-uring

2022 ECS CloudBuild Distributed Cache Contest - Final Round https://tianchi.aliyun.com/competition/entrance/531982/introduction
C++
15
star
10

pytorch-ddp-template

PyTorch Distributed Data Parallel Template
Python
13
star
11

uringpp

C++
5
star
12

autograder-docs

Documentation for Autograder.
4
star
13

simple-kv

PingCAP Interview
C++
4
star
14

tcp-file-transfer

C
4
star
15

live

A simple program that pulls 4 RTMP streams and pushes the merged video to another RTMP server.
C++
4
star
16

openldap-bcrypt-docker

Dockerfile
3
star
17

snake

Snake game written in C
C
3
star
18

autograder-web

Autograder Web UI
JavaScript
3
star
19

tiny

Tiny language compiler
C
3
star
20

6.824-golabs-2015

Go
3
star
21

howardlau1999

3
star
22

hcache

2022 ECS CloudBuild Distributed Cache Contest - Preliminary Round https://tianchi.aliyun.com/competition/entrance/531982/introduction
Rust
2
star
23

mnist-vae-pytorch

CVAE and CVQVAE in PyTorch for MNIST
Python
2
star
24

sysu-web-homework

JavaScript
2
star
25

rdmapp2

C++
2
star
26

bitcask-kv

Simple KV Server based on Bitcask
C++
1
star
27

rdmapp-unsafe

C++ interfaces for RDMA access (unsafe)
C++
1
star
28

learning-machine-learning

Python
1
star
29

c-homework-gui-2017

C
1
star
30

learning-python

Small projects to learn python
Python
1
star
31

single-cycle-mips-cpu

Verilog
1
star
32

microbenches

Rust
1
star
33

network-toolbox

Something useful dealing with Linux networking
C
1
star
34

des

DES algorithm in C (PKCS#5 padding)
C
1
star
35

char-rnn-poet

Simple two-layer LSTM network to generate Tang poems (七绝)
Jupyter Notebook
1
star
36

minesweeper

MineSweeper in CLI in C
C
1
star
37

rustrace

Rust
1
star
38

udp-file-transfer

C
1
star