摘要: https://austinmarton.wordpress.com/2011/09/14/sending-raw-ethernet-packets-from-a-specific-interface-in-c-on-linux/ 阅读全文
posted @ 2016-06-29 15:36 SillyFlame 阅读(119) 评论(0) 推荐(0) 编辑
摘要: rt 阅读全文
posted @ 2016-05-31 12:59 SillyFlame 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 1.DES加密配置文件; 2.MD5加密密码; 3.全局计时器; 4.网络客户端,只负责接收网络包; 5.消息分发器: 1)负责缓冲网路消息,注册消息回调接口。 2)在unity主线程的controller对象的update方法中调用消息分发器,来拉取网络消息。 6.controller集中控制器: 阅读全文
posted @ 2016-04-25 15:43 SillyFlame 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 今天用vs调试程序,想看看各个函数耗费时间,结果发现某些函数声明竟然长这样:std::vector,std::allocator >,int>,std::allocator,std::allocator >,int> > >::emplace_back 而且我刚好又想看看这些个声明的结构,就想... 阅读全文
posted @ 2016-01-23 22:42 SillyFlame 阅读(239) 评论(0) 推荐(0) 编辑
摘要: This is the sample code of the last chapcher of the book.the xml parsetest.cpp:#include #include #include #include #include #include #include #include... 阅读全文
posted @ 2016-01-20 09:44 SillyFlame 阅读(245) 评论(0) 推荐(0) 编辑
摘要: rt 阅读全文
posted @ 2016-01-19 13:48 SillyFlame 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 东西不用,很快就忘,lua其实我很认真的研究过,但是不用,转眼就忘了。就像导出c/c++对象到lua,这次作个记录,以便日后查阅,lua5.2test.cpp:#include #include #include #include #include #include #include #incl... 阅读全文
posted @ 2016-01-18 14:54 SillyFlame 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 作为一个window程序员,实在是离不开IDE,最近复习lua,安装了Netbeans,但是发现字体及其难看,好像美好抗锯齿。 网上随便搜了下,发现也有其他同学反应这个问题,也提供了解决方案。我这里搬运记录一下,方便将来查阅 1.>locate netbeans.conf,找到Netbean... 阅读全文
posted @ 2016-01-18 13:41 SillyFlame 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 今天在linux下编译调用lua的c++程序,链接lualib,出现找不到符号引用。说明库没有正确连接,但是库已经找到。想了一下,是c++掉用c库的问题。将所包含的头文件用extern “C”{}包含,即可 c库下函数的符号和C++函数符号不同,直接链接会产生问题。 阅读全文
posted @ 2016-01-18 09:20 SillyFlame 阅读(305) 评论(0) 推荐(0) 编辑
摘要: A Simple Makefile TutorialMakefiles are a simple way to organize code compilation. This tutorial does not even scratch the surface of what is possible... 阅读全文
posted @ 2016-01-16 10:43 SillyFlame 阅读(132) 评论(0) 推荐(0) 编辑