Skip to content

RealChuan/Cpp-Examples

Repository files navigation

Cpp-Examples

一些过时的C/C++代码

  1. Client---------->一个简单的Linux select socket客户端;
  2. Breakpad---------->Google Breakpad的简单封装;
  3. DesignPattern---------->设计模式的一些例子;
    1. Factory---------->工厂模式;
    2. MVC---------->MVC模式;
    3. Observer---------->观察者模式;
    4. Singleton---------->单例模式;
  4. Glog---------->Google Glog的例子;
  5. Icmp---------->Linux ICMP协议的简单封装;
  6. MonitoringDirectory---------->Windows 监控目录中文件变化的简单封装;
  7. Mutex---------->使用std::atomic_flag实现的简单互斥锁和自旋锁;
  8. Server---------->Linux Server的一些例子;
    1. server_epoll---------->Epoll的例子;
    2. server_poll---------->Poll的例子;
    3. server_select---------->Select的例子;