- 博客(4)
- 资源 (2)
- 问答 (4)
- 收藏
- 关注
原创 Android与C++ 使用socket传输数据
1. 使用C++ 建立socket server监听bool isBroadcastServerLanuch = false;bool isTcpTlsServerLanuch = false;int tcpSocketReceive_fd;void *receiveCmdFromMobileApp(void *arg){ int detachCode = pthread_detac...
2018-10-22 15:10:52 3055 1
原创 UDP 广播的使用
使用UDP广播获取server端的IP地址。1. server开启broadcast监听void *testBroadcast(void *argv){ int detachCode = pthread_detach(pthread_self());// 将状态改为unjoinable状态,确保资源的释放 printf("testBroadcast thread: detachCode...
2018-10-22 14:53:58 3563
原创 Ubuntu系统中sh脚本编写
我们在使用Ubuntu系统开发的过程中,经常会遇到一些重复的操作,想copy, push等等。这个时候我们就可以自己编写一个sh脚本,使用sh脚本操作这些重复的动作。1.在编写sh脚本前了解一下基本语法1.1 if语句#!/bin/shmyPath="/var/log/httpd/"myFile="/var/log/httpd/access.log&
2018-10-22 11:20:31 20685 1
原创 Openwrt ubus server通讯
1. 导入头文件#ifdef __cplusplusextern "C" {#endif#include "libubus.h"#include <libubox/blobmsg_json.h>#ifdef __cplusplus}#endif#define __UBUS_M
2018-10-19 15:09:28 423
关于C++ 静态编译的问题
2017-05-05
关于获取GTest测试结果的问题
2017-04-27
关于gmock交叉编译的问题
2017-04-17
怎么把std::iostream这种类型的数据保存到文件中?
2017-04-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人