boyhailong
V2EX  ›  C++

求 review 下最近写的网络库

  •  
  •   boyhailong · Sep 1, 2021 · 3361 views
    This topic created in 1894 days ago, the information mentioned may be changed or developed.

    基于 epoll 封装了个服务端,解析 protobuf 消息并处理,还在初级阶段,不过球大神帮忙 review

    传送门 https://github.com/boyxiaolong/epoll_socket

    5 replies  •  2021-09-25 22:15:26 +08:00
    name1991
    name1991
    Sep 1, 2021
    1
    你是大佬,想自己造个轮子。。。
    boyhailong
    boyhailong
    OP
    Sep 1, 2021
    2
    @name1991 纯粹学习。。。
    wangxn
    wangxn
    Sep 1, 2021
    3
    吹毛求疵地说,这种代码很像 C with classes,夹杂着一些 C 声明结构体的语法。而且全是裸指针。
    这个还不如用 C 来写。
    boyhailong
    boyhailong
    OP
    Sep 2, 2021
    4
    @wangxn 大佬说的对。。。 我再改改
    ZhaoHuiLiu
    ZhaoHuiLiu
    Sep 25, 2021 via Android
    5
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2036 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:41 · PVG 12:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.