原创 epoll建立服務器

服務端 static int failover_read_from_tcp(int fd, char * buf, int size) { int offset = 0; int bytes; int wanted = size;

原创 linux下opensll加解密詳解

1、使用tar對文件壓縮加密: 在當前目錄下有一個pma目錄的文件夾: tar -zcvf - pma|openssl des3 -salt -k password | dd of=pma.des3 完成將得到一個pma.des3的打包文

原创 【QT】ui設計界面 創建信號與槽 原理

https://blog.csdn.net/u013378306/article/details/52431826

原创 海思3536&3798 DHCPv6移植

1.源碼地址 https://download.csdn.net/download/y7u8t6/10758248   2.交叉編譯 一、libnl 1.1 1.解壓libnl-1.1.tar.gz 到指定目錄下 ../libnl_pr

原创 【shell】海思3536 多網卡綁定聚合——bond技術

0.原理說明 目前網卡綁定mode共有七種(0~6)bond0、bond1、bond2、bond3、bond4、bond5、bond6 常用的有三種: mode=0:平衡負載模式,有自動備援,但需要”Switch”支援及設定。 mode=

原创 【QT】觸發信號時獲取控件對象

snapshotBox = new CustomCheckBox [sys_info.max_cameras]; for (int i(0); i < sys_info.max_cameras && i < MAX_CAMERA; i+

原创 線程2

#define TASK_OK 0 #define TASK_ERROR -1 int ms_task_set_name(const char* name); #define TASK_HANDLE pthread_t int ms_t

原创 repost

完整linux學習筆記 https://mubu.com/doc/explore/17005 linux目錄結構詳細介紹 http://blog.51cto.com/yangrong/1288072 linux系統目錄詳解 http://

原创 【Nginx】海思3536&3798移植Nginx

https://download.csdn.net/download/y7u8t6/10761125

原创 前端書寫格式建議

http://www.runoob.com/w3cnote/front-end-standards.html

原创 linux find + ls -l

當前路徑下所有的.so文件,並顯示列表信息 find ./ -name "*.so" -exec ls -l {} \;          

原创 system function

1.system int xx_system(const char* cmd) { if (!cmd) return -1; int res = 0; int status = 0; pid_t pid = vfork

原创 snmp移植

1.源碼安裝包   http://www.net-snmp.org/download.html 或者https://download.csdn.net/download/y7u8t6/10707891   2.交叉編譯 root@IT-

原创 linux下獲取本機IPv6地址、前綴、網關

獲取本機IPv6信息命令:cat /proc/net/if_inet6 root@IT-PC-135:/home/user1/# cat /proc/net/if_inet6 fe80000000000000922b34fffe4e7

原创 JavaScript封裝一個對象

function Car(sColor,iDoors,iMpg) { this.color = sColor; this.doors = iDoors; this.mpg = iMpg; this.drivers = n