UDP socket : read error Bad address
在写UDP server,在调用套接字读取的时候发生了这个错误, 通过看errno.h 可以看到对应的错误号 EFAULT:
Bad address (POSIX.1),在stackoverflow上看到的这个解释不错:It happen if the memory address of some argum...
分类:
其他好文 时间:
2014-09-04 11:55:09
阅读次数:
421
util提供了各种使用的工具。require('util')to access them.Util.format(format,[..])Returns a formatted string using the first argument as aprintf-like format.The fi...
分类:
Web程序 时间:
2014-09-03 22:39:27
阅读次数:
378
一.引入两个文件1.macco.js(function ($) { var macco = { debug: true, // arguments : all // console.log log: function () { var a = window.console, b = argument...
分类:
Web程序 时间:
2014-09-03 18:04:37
阅读次数:
612
1.在cocos2d-x-3.2\运行python命令
python setup.py
//它的作用是将下面这些路径加入到你的用户环境变量中,当然你也可以不添加
COCOS_CONSOLE_ROOT = 'COCOS_CONSOLE_ROOT'
NDK_ROOT = 'NDK_ROOT'
ANDROID_SDK_ROOT = 'ANDROID_SDK_ROOT'
ANT_ROO...
分类:
其他好文 时间:
2014-09-03 16:56:16
阅读次数:
188
Setup-->User Preference-->display-->opengl-->staic-shapes_fill_solid打勾。可以将栅格铜皮改为实铜,Setup-->User Preference...-->display-->shape_fill-->old shape fill ...
分类:
其他好文 时间:
2014-09-03 16:30:56
阅读次数:
230
Step-By-Step: Creating a SQL Server 2012 AlwaysOn Availability Group http://blogs.technet.com/b/canitpro/archive/2013/08/20/step-by-step-creating-a-sq...
分类:
数据库 时间:
2014-09-03 14:45:06
阅读次数:
167
8.3 JUnit的使用方法JUnit的使用非常简单,共有3步:第一步、编写测试类,使其继承TestCase;第 二步、编写测试方法,使用test+×××的方式来命名测试方法;第三步、编写断言。如果测试方法有公用的变量等需要初始化和销毁,则可以使用 setUp,tearDown方法。8.3.1 继承...
分类:
Web程序 时间:
2014-09-03 12:50:36
阅读次数:
312
最近在给租用的阿里云服务器安装Sql Server 2008 R2 Express时,遭遇下面的问题。经过几番折腾后,终于解决问题,完成安装,这里总结分享我的解决方法,希望能给遇到相同问题的小伙伴们节省折腾时间。Description: SQL Server 2008 R2 Setup has e....
1、安装wget下载http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe双击安装2、系统环境变量,新建GNU_HOME=C:\ProgramFiles\GnuWin323、path添加==========分割线==============;%GNU_HOME%\bin==========分割线==============4、下载整站:用wget下载东西,..
单元测试 PHPUnitassertTrue:是单元测试的方法,有很多这样的方法。 * 模块安装和用法看PHPUnit官网。 */class RemoteConnectTest extends PHPUnit_Framework_TestCase{ public function setUp(...
分类:
Web程序 时间:
2014-09-02 19:25:55
阅读次数:
243