原创 stringsplit之c++
#include <string> #include <vector> using namespace std; // trim from start std::string <rim(std::string &s) { s
原创 UDP組播
1.流程: 1.創建socket他,sockfd = socket(AF_INET, SOCK_DGRAM, 0); 2.允許端口複用setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&yes,sizeo
原创 線程池實踐 - wridtedb.h
class WriteDBUnit : public ArrayBu { public: typedef std::function<int(const std::string& msg)> HandleMessage;
原创 線程池實踐 - wridtedb.cpp
WriteDBUnit::~WriteDBUnit() { if (writedb_thread_count_ > 0) { threadpool_destroy(&threadpool_); }
原创 tair技術文檔
1.Tair總結整理 https://www.jianshu.com/p/91367e93612f 2.淘寶內部員工博客 https://lvtao.net/database/tair.html 3.半小時學會LevelDB原理及應用 h
原创 kafka技術文檔
1.震驚了!原來這纔是kafka! https://www.jianshu.com/p/d3e963ff8b70 1.kafka實戰 https://www.cnblogs.com/hei12138/p/7805475.html
原创 存儲過程——mysql
CALL pr_build_kline_day ('t_quote_quote_NYMEX', 't_quote_kline_day_NYMEX');drop procedure if exists pr_build_kline_min;
原创 linux inifile.h
#ifndef __CONFIG_H__ #define __CONFIG_H__ #include <string> #include <map> using namespace std; class
原创 OpenSSLRSA.h
#ifndef QL_HEADER_OPENSSL_RSA_H #define QL_HEADER_OPENSSL_RSA_H #include <string> using namespace std;
原创 OpenSSLRSA.cpp
#include "OpenSSLRSA.h" #include <openssl/rsa.h> #include <openssl/err.h> #include <openssl/pem.h> #in
原创 CSocketClient.cpp
#include "StdAfx.h" #include "Ksf1MonitorClient.h" #include <windows.h> #include "CInterface.h" // 接收客
原创 CSocketServer.cpp
#include "StdAfx.h" #include "Ksf1Server.h" #include "kufdll.h" #include <windows.h> // 接收客戶端線程 DWORD
原创 makefile 範例
#---------------------------------------------------------- #創建日期:20160203 #作者:高理 #-------------------
原创 OpenSSL非對稱加密RSA應用——Windows版本
1.openssl源碼 ftp://ftp.openssl.org/source/ 2.openssl命令 openssl genrsa -out prikey.pem 1024 openssl rsa -in privkey.pem
原创 linux 編譯和指令
$@表示目標,$^表示依賴列表 $<是第一個 輸出重定向 其中0 表示鍵盤輸入 1表示屏幕輸出 2表示錯誤輸出 make -f qhsvrall_491.lnx > 491temp.txt 2>&1 & cat 491temp.tx