自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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简明学习指南

国内相关的资料不多,而且大多是一些简单的命令介绍,最详细的是harrytaurus2002 写的SELinux学习笔记,2012-02-14 版本有 444 页,够多的。本书肯定没有SELinux学习笔记的详尽,可理解为就是一个精简版。文章会分开好几部分,可通过SELinux TAG查询。

2017-12-05

Configuring the SELinux Policy

介绍SELinux的文档。This technical report describes how to configure the SELinux security policy for the example security server.

2017-12-05

SELinux - an introduction

This introduction was designed to help doing research work on SELinux. Otherwise it would take weeks to search and read the necessary documen-tation, if you haven't worked with SELinux before. This document is far from complete and only touches some subject areas of SELinux. It will try to explain the most important aspects needed to know when working the first time with SELinux. Although may sometimes being a bit superficial, it should still be correct.

2017-12-05

openg读取3ds文件,含view3ds软件

1、vc6.0 使用对话框 2、实现opengl读取3ds文件(先用view3ds从3ds文件中导出gl文件和h文件,然后添加到project中) 3、包含view3ds文件,使用方法等。

2011-12-10

vc读取word的内容

一个一个的字读取word,同时读取其中的字体、大小等等。 使用时,必须把打开的地址改下,看看代码就知道

2011-04-14

DICOMTOBMP

把dicom文件转为bmp图像 This file contains a summary of what you will find in each of the files that make up your DicomReset application. DicomReset.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. DicomReset.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CDicomResetApp application class. DicomReset.cpp This is the main application source file that contains the application class CDicomResetApp. DicomReset.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. DicomReset.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\DicomReset.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file DicomReset.rc. res\DicomReset.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file.

2010-10-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除