码迷,mamicode.com
首页 >  
搜索关键字:protocol buffer    ( 10832个结果)
【JAVA】【NIO】2、Java NIO Overview
Java NIO主要有以下核心组件构成: 通道 缓存 选择器 Java NIO其实有比上面更多的类和组件,但是在我看来,Channel,Buffer,Selector是核心的API。其它组件,像管道和文件锁,仅仅只是在与三大核心组件结合使用时的通用工具类。 通道和缓存一般来说,NIO中的所有IO都是从通道开始的。通道就像一个流,数据可以从通道中读到一个缓存里去,同样,数据可以从缓存写进通道里...
分类:编程语言   时间:2015-03-14 20:07:31    阅读次数:130
CUDA + DX10 buffer的链接
vertexBuffer绑定cuda资源时候,注意desc的申请模式
分类:其他好文   时间:2015-03-14 19:48:03    阅读次数:90
Linux下非阻塞connect
#include #include #include #include #include #include #include #include #include #include #include #include #include #define BUFFER_SIZE 1023 int setnonblocking(int fd) { int old_op...
分类:系统相关   时间:2015-03-14 18:33:58    阅读次数:170
Socket编程实践(3) --Socket API
socket函数#include #include int socket(int domain, int type, int protocol);创建一个套接字用于通信参数:   domain:指定通信协议族(protocol family),常用取值AF_INET(IPv4)   type:指定socket类型, 流式套接字SOCK_STREAM,数据报套接字SOCK_DGRAM,原始套接字...
分类:Windows程序   时间:2015-03-14 13:56:46    阅读次数:238
WriteFile和ReadFile函数
#include #include #define BUF_SIZE 256int main(){ HANDLE hFileRead; DWORD nIn; CHAR buffer[BUF_SIZE]; hFileRead = CreateFile("book.txt", ...
分类:其他好文   时间:2015-03-14 13:43:58    阅读次数:391
ORA-28040: No matching authentication protocol
使用hibernate+oracle数据库时报错,错误如下: 121 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA 147 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found 162 [main] INFO org....
分类:其他好文   时间:2015-03-14 11:07:05    阅读次数:877
有趣的C语言题
1 #include 2 int main(void)3 {4 char buff[10];5 memset(buff,0,sizeof(buff));6 gets(buff);7 printf("\n The buffer entered is [%s]\n",bu...
分类:编程语言   时间:2015-03-14 10:53:24    阅读次数:158
【C】大数的加法
求:S = a + aa + aaa + aaaa + aaaaa + ... + aaaaaaaaaa; 最后一个为n个a,其中a 是一个数字。例如:2+22+222+2222+22222 (n = 5) 1 #include 2 3 int * sum( int buffer[], int .....
分类:其他好文   时间:2015-03-13 20:21:42    阅读次数:160
iOS 中KVC、KVO、NSNotification、delegate 总结及区别
iOS 中KVC、KVO、NSNotification、delegate 总结及区别 1、KVC,即是指 NSKeyValueCoding,一个非正式的Protocol,提供一种机制来间接访问对象的属性。而不是通过调用Setter、Getter方法访问。KVO 就是基于 KVC 实现的关键技术之一。 Demo: @interface myPerson : NSObject { NSString*_name; int _age; ...
分类:移动开发   时间:2015-03-13 16:41:59    阅读次数:74011
ios --关于播放 itunes 里面的歌曲
详情见:http://www.cnblogs.com/kenshincui/p/4186022.html 写的很好#import @protocol MyMusicPlayer @optional@optional/** * 当前播放的时间 * * @param time 时间 */-(void.....
分类:移动开发   时间:2015-03-13 16:01:05    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!