- 博客(9)
- 资源 (5)
- 收藏
- 关注
原创 lua调用C++动态库(windows平台)
例子为网上找到的,最简单的,但一直用不了,现为修改后的代码:#include /*---------这里必须要用这种格式-----------*/extern "C" {#include "lua.h"#include "lualib.h"#include "lauxlib.h"};//dll中定义抛出函数,原型要是Lua_CFunction/*----------定义函数-
2012-03-12 10:06:10
2004
原创 前言
以前在学校的时候就想研究算法,可惜总是给自己找各种理由,时间久了,这件事堆积在心里就成了顽症,总是让人不痛快。其实,对于算法我并不陌生,很多基本上已经学过或者接触过,但我着实讨厌里边的数学计算,我喜欢模型,但不喜欢计算,不知道这算是优点还是缺点。但不管怎么样,我是打定主意要研究一
2011-07-24 20:06:27
624
原创 我自己写的一个消息队列服务器模型,欢迎大家指点
<br />linux下epoll+多线程,使用nosql数据库进行数据持久化存储<br /><br /><br />代码写的比较丑陋,大家不要见怪啊,哈哈!!!<br />#include <sys/socket.h>#include <sys/epoll.h>#include <netinet/in.h>#include <arpa/inet.h>#include <fcntl.h>#include <unistd.h>#include <stdio.h>#include <
2011-04-27 21:23:00
2067
原创 libevent的几个范例,记下来防止自己忘掉
<br />范例1:http://code.google.com/p/ishbits/source/browse/trunk/libevent-examples/buffered-echo-server-example/libevent_echosrv_buffered.c<br />范例2:http://code.google.com/p/ishbits/source/browse/trunk/libevent-examples/echo-server-example/libevent_echosrv2.
2011-03-15 09:33:00
1131
转载 libevent使用步骤
<br />一 libevent简介<br />libevent是一个支持Windows、linux和bsd等平台的网络事件驱动程序库。它支持多种I/O服用机制,按照优先级从高到低依次为:evport、kqueue、epoll、devpoll、rtsig、poll、select。它可根据操作系统,按照优先级从高到底自主选择驱动。<br /> 用户可以通过http://www.monkey.org/~provos/libevent/来获取libevent的源码、libevent出现的背景、以及其他一些
2011-03-13 21:17:00
2169
1
原创 我见过的最简洁的socket程序
<br />Client 端代码:<br />--------------------------------------------------------------<br />/* sockclnt.c*/#include <string.h>#include <stdlib.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h> /*for struct sockaddr_in*/#de
2011-03-13 21:09:00
839
原创 debian中xxx is not in the sudoers file解决方法
<br />用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:<br />1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用) <br />2)添加文件的写权限。也就是输入命令"chmod u+w /
2011-03-11 15:01:00
2806
原创 (转)ubuntu编程缺少openssl头文件的解决办法
<br /><br />解决办法,用 "libssl-dev" 替换 "openssl-devel".<br /> <br />然后$ sudo apt-get install libssl-dev
2011-03-09 19:53:00
5951
Postman_v7.5.7z
2020-04-10
DHTML4.0参考手册(中文)
2011-01-11
《LINUX内核讲解》刚找到的
2010-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人