- 博客(8)
- 资源 (45)
- 收藏
- 关注
原创 C语言实现sqlite3数据库查询的基本方法
sqlite回传函数相关说了3种基本方法:callback,gettable和预处理stmt方法下面给出测试代码和测试用数据库,代码如下#include #include #include #include "sqlite3.h" ////typedef int (*sqlite3_callback)( // void* data, /
2013-12-30 11:16:50 17922 3
原创 C语言实现linux网卡检测-代码精简版
万能的网络,通过getifaddrs可以大大减少编码量,获得 C语言实现linux网卡检测-改进版 同样的效果。#include #include #include #include #include #include #include #include int c_ifaddrs_netlink_status(const char *if_n
2013-12-27 16:49:15 2847
原创 C语言实现linux网卡检测-改进版
C语言+shell 实现linux网卡状态检测 和 C语言实现linux网卡连接检测 2文的方法各有缺陷,比如有些系统执行ifconfig需要root权限,要不就不支持ioctl(fd, SIOCGMIIPHY, &ifr)这样的操作。以下给出了C语言实现linux网卡连接检测 的改进版实现与C语言+shell 实现linux网卡状态检测 同样的功能。#include #in
2013-12-27 08:50:02 4460 1
原创 C语言实现linux网卡连接检测
直接上代码吧#include #include #include #include #include #include #include #include #include #include int get_if_miireg(const char *if_name, int phy_id, int reg_num ){ int
2013-12-26 19:06:24 4048
原创 C语言+shell 实现linux网卡状态检测
不解释,直接上代码 要求linux环境具备grep和awk(awk可选)#include #include #include #include int get_if_status(char *if_name){ char buffer[BUFSIZ]; char cmd[100]; FILE *read_fp; int
2013-12-26 18:26:53 3678
原创 boa-0.94.13:Form CGI Echo
CGI通用网关接口程序,如果不能从客户端浏览器获取参数,将没有任何意义。那么CGI程序如何获取客户端用户输入的参数呢?这里主要依靠HTTP的GET和POST方法,提取HTML的form表单项目,组成name1=value1&name2=value2....格式的字符串。这样的字符串有一个名字叫做URL Encode
2013-12-08 12:17:25 1779
原创 boa-0.94.13:Hello CGI
CGI是什么 CGI全称是CommonGateway Interface,简称CGI,中文名叫做通用网关接口。CGI程序就是符合CGI接口规范的程序,相对于WebServer来说也叫外部程序。CGI接口规范的定义,使得WebSever具备了动态服务功能。客户端或者浏览器通过HTTP协议的GET、POST方法将将form表单数据提交给Web Sever,然后Web S
2013-12-04 22:24:06 4081
dlfcn-win32-r19
2012-11-28
Windows下获取本机MAC地址(网络适配器)
2012-08-02
Windows下获取本机IP地址
2012-08-02
ImDiskVirtualDiskDriver
2012-02-10
jdk-all.txt
2019-09-28
CentOS7 安装MySQL-5.7.22指导书册.zip
2019-09-22
mysql-5.7.22-win32-green.zip
2019-09-21
mysql-5.7.22-winx64-green.zip
2019-09-21
frp-0.26.0配置文件及windows客户端启动脚本
2019-04-15
传统jsp项目转移到springboot
2019-01-26
shell 彩色文字输出
2018-09-19
FastDFS运维脚本
2018-09-19
GSS-API Programming Guide 离线包
2014-07-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人