自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

原创 bash实现互斥、信号量的方法

【通过fifo实现信号量】利用fifo的block-reading实现。#!/bin/bashconf_max_currency=10conf_sem_file=/tmp/$.fifoconf_fifo_fd=123 # 123 for example, or any expect 0,1,2# initmkinfo ${conf_sem_file}exec ${conf_fifo_fd}${conf_sem_file} rm ${conf_sem_file}for (( i

2010-12-03 13:28:00 1367

原创 Google App Engine

Google App Engine1  

2010-10-16 00:19:00 418

原创 乐观并发控制

<br />Amazon 拍卖过程 竞价<br />http://hi.baidu.com/loky2008/blog/item/91f3ec2f73e5c25b4ec22669.html/cmtid/d7edf8c646d670d1d0006079<br />http://doc.javanb.com/hibernate-reference-3-2-0-zh/ch11s03.html<br /> 

2010-10-16 00:13:00 486

原创 C宏 可变参数

C 宏 可变参数

2010-10-11 20:03:00 463

原创 libssh c++

ssh.h/* ssh_t Using libssh*/#ifndef __LIBSSH_CLASS_TYPE_H__#define __LIBSSH_CLASS_TYPE_H_#include #include #include #include #include #include #include #include #include #include #include #include #include #include #

2010-09-05 22:55:00 3605 7

原创 libssh2 C++封装

研究了一下libssh与libssh2,网上的例子除了官方的example,寥寥无几,share一下自己拙劣的C++封装。ssh2.h/* Objective C++ using libssh2 (http://www.libssh2.org/). LIBRARY NEEDED ssl crypto ssh2 ABOUT LIBSSH2 http://www.libssh2.org/docs.html http://www.libssh2

2010-09-05 22:38:00 11906 13

原创 模仿python SocketServer.py写的一个socket服务类 2

<br />增加threading处理<br />threading_xx类<br />class threading_stream_server_t : public stream_server_t{private: struct thread_parameter_t { threading_stream_server_t* handler; socket_t* socket; addr

2010-07-25 19:55:00 770

原创 模仿python SocketServer.py写的一个socket服务类

socket_t类见上文。SocketServer.py的抽象校学习了一下这个c++版本目前实现了stream的fork,DGRAM/thread尚未实现socket_server.h/** **/#ifndef __SOCKET_SERVER_H__#define __SOCKET_SERVER_H__#include "socket++.h"#include #include #include #include #include namespace ss{

2010-07-25 09:58:00 854

原创 Linux socket类,支持AF_INET/AF_UNIX STREAM/DGRAM

<br />学习python时发现,socket和SocketServer的方便快捷,于是研究了一下socket和SocketServer.py写了一下C++版本的。<br />陆续分享一下。<br /> <br />1. socket类socket_t<br />socket++.h<br />/* class socket_t * Description * Simulation to python socket class * Author * wfb *

2010-07-25 09:45:00 2830

转载 bencode

bencode 通信协议 扩展

2010-07-06 12:04:00 1059

原创 由Subversion的版本管理想到的--带版本的存储管理

svn 版本管理

2010-06-17 19:36:00 446

原创 core文件集中管理与统计

core core_pattern core_user_pid sysctl

2010-06-17 16:11:00 555

原创 find命令之时间参数、目录层次

find mtime ctime atime mindepth maxdepth

2010-06-14 10:20:00 5866 2

Smarty+PHP+Template+Application.pdf

关于smarty的一些高级应用,英文版的

2011-05-02

python SocketServer C++ 实现

模仿python中的socket以及SocketServer类,做了简单的封装和实现,对些小的测试代码,可以轻松的套用

2010-09-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除