Skip to content

Instantly share code, notes, and snippets.

@chaohui0
chaohui0 / libevent.cpp
Last active December 21, 2015 22:29
libevent 多线程http服务器
#include <event.h>
#include <evhttp.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <iostream>
All supported DIK codes (not all keyboards have all these keys):
DIK_ESCAPE
DIK_1
DIK_2
DIK_3
DIK_4
DIK_5
DIK_6
DIK_7
DIK_8
@chaohui0
chaohui0 / hookDlg.cpp
Created November 14, 2012 08:00
云同步哦
// hookDlg.cpp : implementation file
#include "stdafx.h"
#include "hook.h"
#include "hookDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif