- 博客(8)
- 资源 (7)
- 收藏
- 关注
转载 广播Boradcast socket sendto出错 errno: 101 Network is unreachable
关键字:linux 广播 255.255.255.255 sendto error: Network is unreachable 全网广播场景: 今天调试linux 网络编程的广播,当向255.255.255.255 的某个端口发送广播包的时候,sendto 返回 -1,错误原因是:sendto erro
2015-12-29 15:26:26 13831 2
转载 setsockopt调用IP_ADD_MEMBERSHIP出错errno:19 no such device
if (setsockopt(fd,IPPROTO_IP,IP_ADD_MEMBERSHIP,&mreq,sizeof(mreq)) printf("setsockopt fail, try again\n"); usleep(200 * 1000); continue; }
2015-12-28 16:14:44 7291
转载 openwrt移植程序时出现line 1: syntax error: unexpected "("
这个问题我遇到的是因为编译器的原因。默认编译的是系统的GCC,但是便以后需要在开发板上跑,因此需要使用交叉编译的GCC。因此需要修改src下面的Makefile文件,我这里修改如下(因为文件夹名字不同,可能需要稍做修改)CC_PATH=/home/user/debug/openwrt/staging_dir/toolchain-arm_cortex-a7+neon_gcc-4.
2015-12-28 13:46:26 2891
原创 Ubuntu安装SourceInsight说明
在ubuntu中,安装windows程序用wine,然后用wine安装windows软件即可。 1. 安装Wine在终端输入以下命令: sudo apt-get install wine 注:在安装时可能弹出ttf-mscorefonts-installer窗口,此时按TAB键,选择确定,继续安装。2. 用wine安装Source Insight
2015-12-24 09:08:05 643
原创 ubuntu 14.04 搜狗输入法安装
1. 进入地址http://pinyin.sogou.com/linux/ 按照ubuntu的版本下载对应的搜狗输入法版本。2. 下载完成之后,浏览器会弹出一个网页——安装指南。对ubuntu 14.04来说,只需要双击下载 deb 软件包,即可直接安装搜狗输入法。3. 第二步之后,Ubuntu软件中心会自动去安装搜狗输入法,安装完成之后,Ubuntu软件中心会提示一些内容需要手动安
2015-12-24 09:01:49 415
转载 setsockopt()
头文件:#include #include 定义函数:intsetsockopt(int s, int level, int optname, const void * optval,,socklen_toptlen);函数说明:setsockopt()用来设置参数s所指定的socket状态.参数level代表欲设置的网络层,一般设成SOL_SOCKET以存取socke
2015-12-22 11:25:49 760
原创 POSIX定时器timer_create、timer_settime、timer_delete
创建、初始化以及删除一个定时器分别对应如下三个函数:timer_create、timer_settime、timer_delete#includeinttimer_create(clockid_t clock_id, struct sigevent *evp,timer_t*timerid)创建的定时器是每个进程自己的,不是在fork时继承的。参数:clock_
2015-12-22 10:36:26 2217
原创 pthread(一) —— pthread_create & pthread_join
pthread_createpthread_create是类Unix操作系统(Unix、Linux、MacOS X等)的创建线程的函数。头文件 :#include函数定义:intpthread_create(pthread_t *tidp,const pthread_attr_t *attr,(void*)(*start_rtn)(void*),void *arg);编译链
2015-12-22 10:32:53 987
selinux简明学习指南
2017-12-05
Configuring the SELinux Policy
2017-12-05
SELinux - an introduction
2017-12-05
openg读取3ds文件,含view3ds软件
2011-12-10
DICOMTOBMP
2010-10-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人