Libevent移植安卓
来源:互联网 发布:magnet协议软件下载 编辑:程序博客网 时间:2024/06/02 02:56
libevent for Android 源代码准备
这里有下载地址:https://github.com/ventureresearch/libevent/archive/patches-2.0.zip
注释掉
放入
即可编译
用的时候有些没有定义 sockaddr_in 会报错~
添加头文件
#ifdef WIN32
#else
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#endif
既可用了
创建新线程
std::thread tA(CreateThreadTT);
tA.detach();
0 0
- Libevent移植安卓
- 安卓WIFI 移植
- FFMPEG移植安卓
- ffmpeg 移植安卓
- Cocos2d-X 安卓移植
- 安卓屏幕驱动移植
- iw工具安卓移植
- libevent 移植到 ARM 步骤
- libevent 移植到 ARM 步骤
- 黄金矿工 PC移植版 【安卓游戏】
- NDK 安卓* 应用移植方法
- NDK 安卓* 应用移植方法
- NDK 安卓* 应用移植方法
- Cocos2d-x移植安卓的笔记
- cocos2dX 移植安卓, 附带视频
- 安卓eclipse工程移植备忘
- coco2dx移植安卓的BUG记事本
- cocos移植安卓的方法
- 彻底理解position和anchorPoint!!!
- Android四大组件之:Activity
- android 网络图片异步加载
- 4.2 File
- 解决android studio can not load library from so file
- Libevent移植安卓
- 从相册选取图片作为头像
- Android获取验证码时的倒计时 CountDownTimer使用
- robotframework+ride+Selenium2Library+AutoItLibrary配置
- 最近
- sublime常用快捷键
- hdu 1698 Just a Hook(线段树区间更新求和)
- View 的属性及系统常用权限
- STL学习系列之一——标准模板库STL介绍