2014年(41)
发布时间:2014-04-23 21:21:44
client:#include <stdio.h>#include <sys/stat.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include<netinet/in.h>int main(){ int opt = 1; socklen_t len = sizeof(len);&nbs.........【阅读全文】
发布时间:2014-04-23 21:14:39
一个select函数的例子#include <stdio.h>#include <time.h>#include <sys/types.h>#include <unistd.h>#include <fcntl.h>int main(){ struct timeval tv; char buf[100] = "pig"; fd_set readfds; tv.tv_sec = 4; &nbs.........【阅读全文】
发布时间:2014-04-20 16:51:42
(一)关于本教程这是一本关于MYQL的C语言编程的入门教程,它讲述了MYSQL的C API编程的基本知识。本博文由编程导航网提供。(二)关于MYSQL数据库MYSQL是一个领先的开源数据管理系统,是一个多用户、多线程的数据库系统。MYSQL在web应用中特别流行,是非常流行的LAMP(L-linux, A-apache.........【阅读全文】