Golang编程语言知识介绍


  • 首页

  • 随想录

  • 生活

  • OS

  • lua

  • redis

  • Golang

  • C

  • OpenVPN

  • web

  • OpenWRT

  • 运维

  • Git

  • 鸟哥的私房菜

  • IT杂谈

  • About Me

  • 友情链接

  • 搜索
close

OpenWrt netifd学习笔记

时间: 2022-10-20   |   分类: OpenWrt     |   阅读: 4737 字 ~10分钟
Netifd简介 Netifd是OpenWrt中用于进行网络配置的守护进程,基本上所有网络接口设置以及内核的netlink事件都可以由neti
阅读全文 »

Openwrt ubus实现进程间通信举例

时间: 2022-10-20   |   分类: OpenWrt     |   阅读: 3994 字 ~8分钟
上一篇文章介绍了ubus的组件和实现原理,本文通过代码实例介绍使用ubus进行进程间通信的三种方式。 invoke的方式实现端对端通信 最简单的
阅读全文 »

OpenWrt 使用 ubus实现进程通信

时间: 2022-10-20   |   分类: OpenWrt     |   阅读: 3627 字 ~8分钟
ubus为openwrt平台开发中的进程间通信提供了一个通用的框架。它让进程间通信的实现变得非常简单,并且ubus具有很强的可移植性,可以很
阅读全文 »

JSON-RPC

时间: 2022-10-20   |   分类: web     |   阅读: 1047 字 ~3分钟
JSON-RPC From Wikipedia, the free encyclopedia Jump to navigationJump to search JSON-RPC is a remote procedure call protocol encoded in JSON. It is similar to the XML-RPC protocol, defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered asynchronously. Version Description Dated 1.0
阅读全文 »

lua常用函数-打印表

时间: 2022-10-19   |   分类: lua     |   阅读: 74 字 ~1分钟
打印表 function PrintTable(table, key, level) level = level or 1 local indent = "" for i = 1, level do indent = indent.." " end if key ~= nil then print(indent..key.." ".."=".." ".."{") else print(indent .. "{") end for k,v in pairs(table) do if type(v) == "table" then PrintTable(v, key, level + 1) else local content = string.format("%s%s = %s", indent .. " ",tostring(k), tostring(v)) print(content) end end
阅读全文 »

CMakeLists.txt注释

时间: 2022-10-19   |   分类: c     |   阅读: 51 字 ~1分钟
单行注释:使用“#” 多行注释:使用“#[[ ]]” 以下图为例 以上内容转载自互联网,若有侵权请联系站长删除

implicit declaration warning - C语言函数隐式声明

时间: 2022-10-19   |   阅读: 953 字 ~2分钟
implicit declaration of function——函数隐式声明警告 原因: 1、该函数未被声明,但却被调用了,此时gcc会报这样的警告信息。 2、(网友总结)该函数所在源
阅读全文 »

C语言获取系统时间并转换成字符串

时间: 2022-10-19   |   分类: c     |   阅读: 26 字 ~1分钟
#include <time.h> #include <stdio.h> int main(int argc, char *argv[]) { time_t tt = time(0); char buf[32] = {0}; strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&tt)); return 0; }
1 2 3 4 5 6 7 8 9
shankusu2017@gmail.com

shankusu2017@gmail.com

501 日志
34 分类
39 标签
RSS 订阅
GitHub
© 2009 - 2023
粤ICP备2021068940号-1 粤公网安备44011302003059
0%