- 博客(13)
- 资源 (4)
- 收藏
- 关注
原创 protobuf 与lua的结合
首先把所有的proto文件bia编译成一个库,如protofile.so,这样我们只需要知道任何一个message的名字,就可以把这个message描述出来,把lua里面的一个表对应成protofile里面的一个message。lua表里的键值对应message里的field域,如message Man{required uint32 id;repeated uint32 pho
2014-12-29 00:09:07
1423
原创 skynet学习笔记【skynet multicast服务的实现】
云风博客上有篇文章已经对multicast的实现讲解的很清楚:http://blog.codingnow.com/2014/04/skynet_multicast.html。下面是自己对着源码以及博客对multicast的理解,(1)为了实现一个整个skynet网络的广播服务(可能包括很多个skynet节点),每个skynet节点都得启动一个multicastd服务模块,由multicas
2014-12-28 23:42:36
2224
转载 size and resize (STL Sample)
<br />basic_string size and resize (STL Sample)<br />The sample code below illustrates how to use the basic_string size and resize STL functions in Visual C++.<br />Required Header:<string><br />Prototype:<br />size_type size() const;<br />void resize(size
2010-09-02 15:31:00
674
转载 find_first_of (STL Sample)
<br />basic_string::find_first_of (STL Sample)<br />The sample code below illustrates how to use the basic_string::find_first_of STL function in Visual C++.<br />Required Header:<string><br />Prototype:<br />size_type find_first_of(const basic_string& _X,
2010-09-02 15:29:00
891
转载 accumulate, copy, vector::push_back(STL Sample)
accumulate, copy, vector::push_back(STL Sample)The sample code below illustrates how to use the accumulate, copy, and vector::push_back STL functions in Visual C++.Required Header:Prototype:template inline _TYPE accumulate(InputIterator first, InputIt
2010-09-02 15:23:00
598
转载 append (STL Sample)
basic_string::append (STL Sample)The sample code below illustrates how to use the basic_string::append STL function in Visual C++.Required Header:Prototype: string& append(const basic_string& _X); string& append(const basic_string& _X, size_type pos
2010-09-02 15:21:00
748
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人