首页 > 2014年03月18日 > 全部分享
一个例子明白发送缓冲区、接受缓冲区、滑动窗口协议之间的关系
一个例子明白发送缓冲区、接受缓冲区、滑动窗口协议之间的关系。 在上面的几篇文章中简单介绍了上述几个概念在TCP网络编程中的关系,也对应了几个基本socket系统调用的几个行为,这里再列举一个例子,由于对于每一个TCP的SOCKET来说,都有一个发送缓冲区和接受缓冲区与之对应,所以这里只做单方向交流,不做互动,在recv端不send,在send端不recv。细细揣摩其中的含义。 一、recv端 ...
分类:其他   时间:2014-03-18 11:52:05    收藏:0  评论:0  赞:0  阅读:567
再次深入理解TCP网络编程中的send和recv
本篇我们用一个测试机上的阻塞socket实例来说明主题。文章中所有图都是在测试系统上现截取的。 需要理解的3个概念 1. TCP socket的buffer 每个TCP socket在内核中都有一个发送缓冲区和一个接收缓冲区,TCP的全双工的工作模式以及TCP的流量(拥塞)控制便是依赖于这两个独立的buffer以及buffer的填充状态。接收缓冲区把数据缓存入内核,应用进程一直没...
分类:其他   时间:2014-03-18 11:45:40    收藏:0  评论:0  赞:0  阅读:420
Check Directory Existence in Shell
The following command in one line can check if a directory exists. You can check the return value ("yes or "no) then decide what to do.$ if [ -d /home...
分类:其他   时间:2014-03-18 08:56:03    收藏:0  评论:0  赞:0  阅读:457
Compile Java Codes in Linux Shell instead of Ant Script
The following is frequently used ant script, compile some java source codes with a libary path, then copy all non-java files to compiled folder: ...
分类:编程语言   时间:2014-03-18 08:54:57    收藏:0  评论:0  赞:0  阅读:454
A Telnet Client Using Expect
The following expect script achieves a simple telnet client: login -> send command -> exit. The point is the form of prompt in regular expression. You...
分类:Web开发   时间:2014-03-18 08:57:03    收藏:0  评论:0  赞:0  阅读:471
一台服务器上部署多个Terracotta的方法
在window server 2003 下,利用apache2.2.11+tomcat6+terracotta 群集不能复制session(http://forums.terracotta.org/forums/posts/list/2342.page) 其中提到更新服务器配置的方法: bin/ti...
分类:其他   时间:2014-03-18 08:58:02    收藏:0  评论:0  赞:0  阅读:442
Mantis安装过程笔记
安装平台:Windows Server 2003 R2 Enterprise x64 Edition软件:EasyPHP-5.3.6.1mantisbt-1.2.6 安装过程:首先安装EasyPHP,一路next即可,安装到默认位置即可,路径中可以有空格;将 mantisbt-1.2.6解压到 Ea...
分类:其他   时间:2014-03-18 08:59:00    收藏:0  评论:0  赞:0  阅读:420
Semi-automation Script Based on Sleep
The following script auto login to server 49, send 2 commands and exit from the server.Create a automation script named "auto.sh":echo "open 10.0.2.49...
分类:其他   时间:2014-03-18 09:00:02    收藏:0  评论:0  赞:0  阅读:442
U盘自动弹出脚本
需要微软的Sysinternals Suite中的sync工具,解压到d:\apps下。ahk脚本:#u:: ; eject usb drive InputBox, myInp, Remove USB, Input Drive Letter:, if ErrorLevel return else R...
分类:其他   时间:2014-03-18 09:01:09    收藏:0  评论:0  赞:0  阅读:538
用于在公网环境下测试的Telnet/SSH服务器
google: public telnet server listfor example:telnet nethack.alt.orgssh nethack@alt.org
分类:Web开发   时间:2014-03-18 09:02:07    收藏:0  评论:0  赞:0  阅读:421
用notepad2代替notepad
Windows自带的notepad.exe功能比较弱,notepad2是一个比较好的替代方案,但在任何系统调用notepad的时候都能用notepad2代替并不是一件容易的事,下面是一个解决方法:http://www.flos-freeware.ch/doc/notepad2-Replacement...
分类:其他   时间:2014-03-18 09:03:10    收藏:0  评论:0  赞:0  阅读:490
TextLineCodecFactory笔记
Mina的TextLineCodecFactory将字符串编码为字节流,将字节流解码为字符串,下面是使用中遇到的两个问题。 TextLineCodecFactory改变了message的类型 acceptor上挂了textCodec后handler的messageReceived方法中的sessio...
分类:其他   时间:2014-03-18 09:05:15    收藏:0  评论:0  赞:0  阅读:1548
Share Keyboard, Mouse and Clipboard between Multiple Computers
Synergy version: 1.4.12ServerDownload and install synergy-1.4.12-Linux-i686.deb on Mint 14;Run it under Desktop mode (in [Edit -> Settings -> Advanced...
分类:其他   时间:2014-03-18 09:08:12    收藏:0  评论:0  赞:0  阅读:553
MIT Scheme Development on Ubuntu
sudo apt-get mit-scheme;run "scheme" then you enter the command line scheme repl;sudo apt-get emacs;modify "(setq scheme-program-name "scm")" in .emac...
分类:其他   时间:2014-03-18 09:10:21    收藏:0  评论:0  赞:0  阅读:472
Reuse Sonar Checkstyle Violation Report for Custom Data Analysis
Write a violation rules file;Import it into Sonar as a Quality Profile named as "MyRules";Add the following properties to ant script: Run Ant script, ...
分类:其他   时间:2014-03-18 09:09:14    收藏:0  评论:0  赞:0  阅读:460
通通制作Html5小游戏——第二弹(仿flappy bird像素鸟)
亲爱的博友们,我又回来啦~因为我们技术宅的思想只有技术宅懂得,好不容易写了点好玩的东西发QQ空间,结果只有11的UV,0回复....10分钟ps一个女神的素描效果发QQ空间朋友圈,一大堆回复加赞,作为一个屌丝技术宅还是博客园更懂得o(∩_∩)o ~~ 废话不多说,进入主题吧,前段时间flappy b...
分类:移动平台   时间:2014-03-18 11:44:58    收藏:0  评论:0  赞:0  阅读:622
可扩展验证框架 - A2DFramework验证框架使用介绍
SUMMARY用途DEMO演示NuGet相关的资料VS工具端的设置用途数据验证的作用很重要,目前.NET提供的内建验证机制是采用DataAnnotation方式来实现属性的验证,并且也提供了很多验证Attribute,如下图:不过缺点也有:没有基于场景的验证支持如订单Entity如果是PC录入,则要...
分类:其他   时间:2014-03-18 11:44:55    收藏:0  评论:0  赞:0  阅读:438
VS2010插件
Highlight all occurrences of selected words
分类:其他   时间:2014-03-18 11:45:11    收藏:0  评论:0  赞:0  阅读:415
在包一级定制log4j日志输出
软件开发和维护过程中,日志是必不可少的工具,对于一个10万行规模的产品,要分析它的某一部分,最简单的方法是将log4j配置文件的rootLogger的输出级别设置为debug,但这样将使产品的所有部分的debug信息都输出,一方面会对产品性能产生巨大影响,另一方面所关心部分的debug信息会淹没在其...
分类:其他   时间:2014-03-18 11:45:14    收藏:0  评论:0  赞:0  阅读:493
Java多线程间的数据共享
下面的程序演示了一个对象被两个线程访问的方法,"monitor.gotMessage();"这一句虽然是monitor对象的方法,但却是运行在"MyObject"的线程里,而不是"monitor"线程里。 BusyWaiting.java:public class BusyWaiting { pub...
分类:编程语言   时间:2014-03-18 11:45:24    收藏:0  评论:0  赞:0  阅读:389
1561条   上一页 1 ... 30 31 32 33 34 ... 79 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!