上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页
摘要: 1,支持的基本类型.proto TypeNotesC++ TypeJava Typedoubledoubledoublefloatfloatfloatint32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intint64Uses variable-length encoding. Inefficient for encoding negative 阅读全文
posted @ 2011-08-30 21:40 Lunaa 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 当用erlang 编辑的时候,代码搜索路径的设置方式如下:1,启动erlang shell,输入命令init:get_argument(home). 可以看到erlang的home目录。2,在home目录下面建立一个.erlang文件,里面可以加上需要搜索的路径。 例如:io:format("Start\n").code:add_patha(".").code:add_patha("D:/workspace/erl1/src").编辑完保存,再启动erlang shell的时候,用code:get_path().可以看到搜索路径。这里 阅读全文
posted @ 2011-08-29 22:30 Lunaa 阅读(378) 评论(0) 推荐(0) 编辑
摘要: chiway翻译的里面的一段 http://www.csdn.net/Develop/Read_Article.asp?Id=15224 一个应用程序通过设定SO_SNDBUF为0把缓冲区关闭,然后发出一个阻塞send()调用。在这样的情况下,系统内核会把应用程序的缓冲区锁定,直到接收方确认收到了整个缓冲区后send()调用才返回。似乎这是一种判定你的数据是否已经为对方全部收到的简洁的方法,实际上却并非如此。想想看,即使远端TCP通知数据已经收到,其实也根本不代表数据已经成功送给客户端应用程序,比如对方可能发生资源不足的情况,导致AFD.SYS不能把数据拷贝给应用程序。另一个更要紧的问题是,在 阅读全文
posted @ 2011-08-28 09:57 Lunaa 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 使用 Alchemy 技术编译 C 语言程序为 Flex 可调用的 SWCPosted on 2011/03/29 by Neal Mi—1 Comment ↓ 最近发现 Flex 里有个新的玩儿法,可以把C语言写的程序编译成SWC供Flex调用。使用 Achemy (http://labs.adobe.com/technologies/alchemy/) 技术。这就为很多算法优化提供了可能。 下面是以我的 Mac OS 系统为例的简单介绍(更详细的请参见官方的文档):下载适合你操作系统的版本( http://labs.adobe.com/downloads/alchemy.html ),前置 阅读全文
posted @ 2011-08-28 09:42 Lunaa 阅读(158) 评论(0) 推荐(0) 编辑
摘要: When you need to send small data packets over TCP, the design of your Winsock application is especially critical. A design that does not take into account the interaction of delayed acknowledgment, the Nagle algorithm, and Winsock buffering can drastically effect performance. This article discusses 阅读全文
posted @ 2011-08-27 21:05 Lunaa 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Nagle's algorithmFrom Wikipedia, the free encyclopediaJump to: navigation, search Nagle's algorithm, named after John Nagle, is a means of improving the efficiency ofTCP/IP networks by reducing the number of packets that need to be sent over the network.Nagle's document, Congestion Contr 阅读全文
posted @ 2011-08-27 21:02 Lunaa 阅读(271) 评论(0) 推荐(0) 编辑
摘要: TCP Performance problems caused by interaction between Nagle's Algorithm and Delayed ACKStuart Cheshire20th May 2005This page describes a TCP performance problem resulting from a little-known interaction between Nagle's Algorithm and Delayed ACK. At least, I believe it's not well known: 阅读全文
posted @ 2011-08-27 21:01 Lunaa 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Nagle算法 TCP_NODELAY和TCP_CORKNagle算法根据创建者John Nagle命名。该算法用于对缓冲区内的一定数量的消息进行自动连接。该处理过程(称为Nagling),通过减少必须发送的封包的数量,提高了网络应用 程序系统的效率。Nagle算法,由Ford Aerospace And Communications Corporation Congestion Control in IP/TCP internetworks(IETF RFC 896)(1984)定义,最初是用于缓冲Ford的私有TCP/IP网络拥塞情况,不过被广泛传播开来。Nagle的文档定义了一种他称之为 阅读全文
posted @ 2011-08-27 12:40 Lunaa 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 有时候我们要控制套接字的行为(如修改缓冲区的大小),这个时候我们就要控制套接字的选项了.以下资料均从网上收集得到 getsockopt 和 setsockopt 获得套接口选项: int getsockopt ( int sockfd, int level, int optname, void * optval, socklen_t *opteln ) 设置套接口选项: int setsockopt ( int sockfd, int level, int optname, const void * optval, socklen_t *opteln ) sockfd(套接字): 指向一个打. 阅读全文
posted @ 2011-08-27 12:38 Lunaa 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Erlang is an open-sourced concurrency-oriented programming language, developed byEricsson. It has proven itself in many industrial applications as a powerful tool. Now we are building a development environment that will boost programmer efficiency even more.OverviewWe are proud to announce the lates 阅读全文
posted @ 2011-08-25 21:58 Lunaa 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页