mmap() 和 munmap() - Unix的系统函数,更贴近底层 void* mmap(void* addr,size_t size,int prot,int flags, int fd, off_t offset) 参数addr可以指定映射的首地址,一般为0 交给内核指定。 size 就是分...
分类:
其他好文 时间:
2014-08-01 19:18:52
阅读次数:
206
send函数 int send( SOCKET s, const char FAR *buf, int len, int flags ); 不论是客户还是server应用程序都用send函数来向TCP连接的还有一端发送数据。客户程序一般用send函数向server发送请求,而server则通经常使用...
分类:
其他好文 时间:
2014-08-01 13:31:51
阅读次数:
174
1.Build Settings-->搜索other linker Flags-->将other linker Flags设置为-objc2.用2.1.1的版本的百度地图3.换高德地图
分类:
移动开发 时间:
2014-08-01 12:59:51
阅读次数:
359
preg_match_all—执行一个全局正则表达式匹配int preg_match_all ( string pattern, string subject, array matches [, int flags] )在 subject 中搜索所有与 pattern 给出的正则表达式匹配的内容并将...
分类:
Web程序 时间:
2014-07-31 20:01:12
阅读次数:
207
recv函数int recv( SOCKET s, char FAR *buf, int len, int flags );不论是客户还是服务器应用程序都用recv函数从TCP连接的另一端接收数据。该函数的第一个参数指定接收端套接字描述符;第二个参数指明一个缓冲区,该缓冲区用来存放recv函数接收到...
分类:
其他好文 时间:
2014-07-29 21:00:43
阅读次数:
237
回顾上一篇我们了解到了用__block修饰的变量,可以在block内部修改,__block变量其实对应一个结构体struct __Block_byref__para1_0 { void *__isa;__Block_byref__para1_0 *__forwarding; int __flags....
分类:
其他好文 时间:
2014-07-29 17:21:52
阅读次数:
286
[1]Defaultnoinstallifconfigcommand,ifyouwanttouseifconfigneedinstallnet-toolsyum-yinstallnet-tools[root@mariadb~]#ifconfig
eth0:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500
inet192.168.1.123netmask255.255.255.0broadcast192.168.1.255
inet6fe80::21..
分类:
其他好文 时间:
2014-07-29 15:53:19
阅读次数:
324
摘自网络,综合自己的理解: 函数名原型详解返回类型注意事项re.matchimport re re.match(pattern,string,flags)pattern:正则表达式,匹配成功,返回一个Match,否则返回一个None string:要匹配的字符串 flags...
分类:
其他好文 时间:
2014-07-29 10:27:38
阅读次数:
218
(注:下面所指的低版本是指2.3及2.3以下版本)1.如何取消掉通知栏上的通知 (1)设置对应的flags,让用户点击既被消除:notification.flags = FLAG_AUTO_CANCEL; (2) 通过手动消除某项或则全部通知mNotificationMgr.cancle(NOTI....
分类:
其他好文 时间:
2014-07-27 22:33:59
阅读次数:
224
1、voidRender();Description Render the camera manually.This will render the camera. It will use the camera's clear flags, target texture and all other....
分类:
其他好文 时间:
2014-07-27 21:58:19
阅读次数:
335