Boost Asio 网络编程 基本用法
flyfish 2015-2-9
IP地址
boost::asio::ip::address表示IP地址,同时支持ipv4和ipv6。
boost::asio::ip::address addr;
addr = addr.from_string("127.0.0.1");
assert(addr.is_v4()); ...
分类:
其他好文 时间:
2015-02-09 18:24:01
阅读次数:
351
将英文句子拆成一个个单词(对于句子中可能出现的不同情况)...
分类:
其他好文 时间:
2015-02-09 18:21:28
阅读次数:
185
1 #region 获得6位优惠码 zhy 2 public static string CreatePromoCode(string code) 3 { 4 if (code == "") 5 { 6 r...
1 #region 异步测试 2 //委托 3 public delegate void PrintDelegate(string s); 4 [WebMethod] 5 public string yibu() 6 ...
分类:
Web程序 时间:
2015-02-09 17:59:44
阅读次数:
143
string res = "abc, , ,_ ,_,c,b,c ,abde,r.e"; char[] chs = new char[] { ' ', '.', '_', ',' };//不想要的分割符string[] strnew = res.Split(new char[] { ' ', '.'...
分类:
其他好文 时间:
2015-02-09 17:58:27
阅读次数:
121
json 处理的例子代码, 解析结果看后面注释。 package main import "encoding/json" import "fmt" import "os" type Response1 struct { Page int Fruits []string } type Response...
分类:
Web程序 时间:
2015-02-09 17:50:51
阅读次数:
222
1 #region 跨平台加解密(c# 安卓 IOS) 2 3 // public static string sKey = "12345678"; 4 5 // /// 6 7 // /// 解密 8 9 //...
分类:
移动开发 时间:
2015-02-09 17:49:42
阅读次数:
190
推荐小图: (图片大小:300*214px) //推荐大图片 string bigpic; if (imgbigBus.ImageUrl.Equals("~/Images/businessDemo.gif")) bigpic = ""; else bigpic = imgbigBus.I...
分类:
Web程序 时间:
2015-02-09 17:40:19
阅读次数:
126
public static void main(String[] args) { String base64bian =encryptBASE64("d:/项目管理知识体系(第五版)1.pdf");//文件路径 decryptBASE64(base64bian...
分类:
其他好文 时间:
2015-02-09 17:39:42
阅读次数:
134
1 首先要引用 NPOI.dll (可在网上下载!) 2 //导入 3 public void OnSubmit() 4 { 5 string path = Server.MapPath("/upload/201410/27/201410271...
分类:
其他好文 时间:
2015-02-09 17:35:06
阅读次数:
202