c c++
文章平均质量分 81
wwwasw
这个作者很懒,什么都没留下…
展开
-
gdb使用技巧收集
gdb使用问题https://sourceware.org/gdb/wiki/FAQ10. GDB does not see any threads besides the one in which crash occurred; or SIGTRAP kills my program when I set a breakpoint.This frequently happen on Linux, especially on embedded targets. There are two ...原创 2020-10-03 16:08:26 · 111 阅读 · 0 评论 -
ycm 安装手记
1.通过vundle安装并下载ycm源码2.下载clang-llvm http://releases.llvm.org/ eg:clang+llvm-3.9.0-x86_64-opensuse13.2.tar3.编译mkdir ycm_buildcd ycm_build#指定clangcmake -G "Unix Makefiles" -DUSE_SYSTEM_BOOS...原创 2018-10-07 19:12:43 · 1763 阅读 · 0 评论 -
C语言获取本机ip
阅读redis客户端代码,发现一种获取本机IP的方式,摘记记录。#include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <stdarg.h>#include <time.h>#include <sys/time.h>#include <...原创 2018-04-03 20:23:46 · 5216 阅读 · 0 评论 -
remote gdb
参考官方手册https://sourceware.org/gdb/onlinedocs/gdb/gdbserver-man.htmlgdbserver comm prog [args…]gdbserver –attach comm pidgdbserver –multi comm通过TCP方式启动远程调试gdbserver./gdbserver :2212 aa -flagfile=ser...原创 2018-03-01 21:08:06 · 600 阅读 · 0 评论 -
使用GDlib在图片上绘制文本
使用GDlib在图片上绘制文本GDlib安装在ubuntu 17.04下选择从源码编译安装环境准备: - libpng,png格式支持; 执行apt install libpng-dev - libjpeg - libfreetype,字体支持 - zlib - cmakeclone源代码并切换到目的tag,cd到源码根目录,执行以下命令:cmake -DBUILD_TEST=1 -DEN原创 2017-10-06 22:41:04 · 1478 阅读 · 0 评论 -
boost 资源收集
asio示例:Unicomm is a multiplatform C++ framework that allows to create custom network protocols over TCP transport. Unicomm takes care about communication details to make focus on business logic. It转载 2016-12-04 00:52:35 · 398 阅读 · 0 评论 -
nginx 相关配置参考文章
http://www.pagefault.info/?p=235转载 2016-02-19 20:22:04 · 344 阅读 · 0 评论 -
https 嵌入式客户端demo
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define DEBUG 1/**转载 2015-04-24 19:17:35 · 1620 阅读 · 0 评论 -
开源软件mjpg-streamer 简要分析(上)
Mjpg-streamer是一个开源项目,也是一个可以从单一组件获取图像并传输到多个输出组件的命令行式的应用程序,它可以将JPEG的文件视频流化并通过互联网将视频流从网络摄像头传送到像Firfox、VLC、带有浏览器的移动设备等显示装置。主要针对RAM和CPU资源有限制的嵌入式设备而编写的,为了减少CPU的负担它充分利用了网络摄像头一定程度上的硬件压缩能力,主要通过输入插件从摄像头获取图像后再通过原创 2014-03-13 10:11:14 · 6724 阅读 · 4 评论 -
开源软件mjpg-streamer 简要分析(中)
源码输入组件分析当选择使用USB摄像头时,input_uvc将是一个必选的输入组件,其主要功能是获取摄像头拍摄的图像并进行压缩编码,并将处理好的图像复制到全局图像缓存区。此输入组件文件参照关系如图4.7所示。图4.7 输入组件input_uvc文件参照关系与其他组件一样它有5个接口函数分别为input_init、input_run、input_stop、input_cmd、原创 2014-03-13 10:21:23 · 1787 阅读 · 0 评论 -
开源软件mjpg-streamer 简要分析(下)
源码输出组件分析在输出组件中,最为常用的是output_http,在结构方面和其他组件一样,有五个接口函数output_init,output_run,output_stop,output_cmd,help。在output_run创建server_thread的线程,通过TCP协议与浏览器建立连接,具体过程为:打开一个套接字(socket)等待客户端连接,一旦收到连接请求建立连接后则启动cli原创 2014-03-13 10:24:58 · 2007 阅读 · 0 评论 -
Top 5 Questions about C/C++ Pointers 【转】
This article summarizes top questions asked about C/C++ pointers on stackoverflow.com. Pointers are the most confusing part of C/C++, those questions use simple examples to explain key pointer concept转载 2013-10-15 08:56:48 · 668 阅读 · 0 评论