Yunyin's blog
  • Home
  • Archive
  • Tags
  • Categories

    { C++ }

  • 补充:grpc编译指南

    2024-05-22 /
    • { C++ }
    • { cmake }

    grpc编译指南

    1. 下载版本

    Read On »
  • 00 README

    2024-04-24 /
    • { C++ }
    • { C++ Guidelines Support Library }

    README

    ​ The Guidelines Support Library (GSL) contains functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation.

    Read On »
  • 01 owner && not_null

    2024-04-24 /
    • { C++ }
    • { C++ Guidelines Support Library }

    owner && not_null

    gsl::owner

    Read On »
  • clang tools入门

    2024-04-24 /
    • { C++ }
    • { clang-tools }

    clang tools入门

    ​ Clang工具是为C++开发者所设计的单独的命令行(潜在的图形界面)工具集,这些开发者是已经使用Clang并且喜欢使用Clang作为他们的编译器。这些工具内部提供了面向开发的功能:语法检查,自动格式化,重构等。

    Read On »
  • 06 处理粘包问题

    2024-04-22 /
    • { C++ }
    • { boost }
    • { asio }

    处理粘包问题

    常用的处理方式是,使用tlv协议,即消息id+消息长度+消息内容。简化的方案就是,消息长度+消息内容。

    方案实现

    Read On »
  • 23 生成器表达式

    2024-04-21 /
    • { C++ }
    • { cmake }

    生成器表达式

    [TOC]

    Read On »
  • 24 添加头文件的区别:target_include_directories、include_directories和add_executable

    2024-04-21 /
    • { C++ }
    • { cmake }

    添加头文件的区别:target_include_directories、include_directories和add_executable

    ​ 这三种方式都可以对当前项目添加引用路径。

    Read On »
  • 26 add_custom_target

    2024-04-21 /
    • { C++ }
    • { cmake }

    add_custom_target

    ​ 在很多时候,需要在cmake中创建一些目标,如clean、copy等等,这就需要通过add_custom_target来指定。同时,add_custom_command可以用来完成对add_custom_target生成的target的补充。

    Read On »
  • 05 读写分离Server

    2024-04-20 /
    • { C++ }
    • { boost }
    • { asio }

    读写分离的Server

    线程安全的队列写数据

    使用读写分离的Server,通过队列来写数据。队列需要保证线程的安全性。
    

    Send

    Read On »
  • 00 参考资料

    2024-04-16 /
    • { C++ }
    • { boost }

    参考资料

    • Networking in C++ Part #1: MMO Client/Server, ASIO & Framework Basics (youtube.com)
    • C++ asio 网络编程教程
« prev1…45678…27next »
© 2024 - Yunyin
Powered by Hexo , Theme - Icalm