c
Henry_Wu001
这个作者很懒,什么都没留下…
展开
-
调用libcurl 下载文件
基于chatgpt实现原创 2023-08-11 14:38:30 · 125 阅读 · 0 评论 -
CRC16CCITT算法CcittKermit
常见CRC算法模型如下:CRC校验工具-在线工具1)pythonbinascii.crc_hqxcrcmod.mkCrcFunPython binascii.crc_hqx方法代碼示例 - 純淨天空2)c#版本public enum Crc16Mode : ushort { Standard = 0xA001, CcittKermit = 0x8408 }public class Crc16{ readonly ushort[] table = n...原创 2021-10-09 13:45:34 · 490 阅读 · 0 评论 -
protobuf与c语言
谷歌的protobuf支持很多种语言,唯独不支持c,而在嵌入式设备上大都是c语言开发,有很大的需求,由此出现了很多非官方的支持c语言版ptotobuf。一直在更新的好像就nanopb和protobuf-c。比如nanopb protobuf-c lwpb(too old) Protobuf-Embedded-C(too old) empb(too old) pbc(too o...原创 2019-12-16 14:56:33 · 1983 阅读 · 0 评论 -
probuf与netty的编解码
之前直接用框架中的编解码,没有设计具体代码,现在要和C交互,需要设计具体的编解码实现,其中new ProtobufVarint32LengthFieldPrepender(),new ProtobufEncoder(),new ProtobufVarint32FrameDecoder(),new Protobuf.ProtobufDecoder(Frame.Parser)...原创 2019-12-11 14:16:25 · 176 阅读 · 0 评论 -
embedded linux system gdb 调试
refs:http://liu1227787871.blog.163.com/blog/static/205363197201261204950218/一)在ARM板上:1. ulimit -c unlimited2. 执行应用程序 : 程序出错时会在当前目录下生成名为core的文件在PC上:3、首先将core文件拷贝到pc机上 然后转载 2016-11-09 17:39:05 · 527 阅读 · 0 评论 -
自己动手写RTP服务器——用RTP协议传输TS流
refs:http://www.cnblogs.com/lidabo/p/4160145.html预备知识关于TS流的格式:TS流封装的具体格式请参考文档ISO/IEC 13818-1。这里我们只需要了解一些简单的信息就好。首先TS流是有许多的TS Packet组成的,每个TS Packet的长度固定为188 bytes,每个packet都是以sync_byte:0x47开头。转载 2016-11-28 11:01:03 · 1463 阅读 · 0 评论 -
minihttpd cgi 路径是相对于 webdir的
mark:top/mini_httpdtop/web/xx.htmltop/web/aa.cgimini_httpd.cfg# Specifies a directory to chdir() to at startup.dir=webi/# Specifies an alternate port number to listen on#原创 2017-01-24 14:34:29 · 991 阅读 · 0 评论