http://blog.csdn.net/pkutao/article/details/8572216{ok, Listen} = gen_tcp:listen(?defPort, [binary, {packet, 2},{reuseaddr, true},{active, true}]),%ge...
分类:
其他好文 时间:
2015-02-11 15:55:18
阅读次数:
669
使用Python来写网络包探嗅器(Code a network packet sniffer in python for Linux) by Silver Moon Basic Sniffer Sniffers are programs that can capture/sniff/detect network traffic packet by packet an...
分类:
编程语言 时间:
2015-02-11 11:09:14
阅读次数:
215
4.2.3 Fragmentation and Reassembly
IP的MTU是65536bytes;而Ethernet的MTU为1518bytes,所以需要分片,而router可能会对packet再次分片。
注意:分片的payload部分一定是8bytes的倍数。
属于同一个packet的所有分片的identifier field(位于IP header)的值相同,在flags fie...
分类:
其他好文 时间:
2015-02-09 11:07:29
阅读次数:
285
由于数据量最近疯长,查询时候出现如下错误提示:com.mysql.jdbc.PacketTooBigException:Packetforqueryistoolarge(2054817>1048576).Youcanchangethisvalueontheserverbysettingthemax_allowed_packet意思是说查询mysql数据库时候返回查询结果过大,超过了msql设置的上线解..
分类:
数据库 时间:
2015-02-06 19:08:10
阅读次数:
339
4.2.2 IP Packet Format
有很多资料都在介绍ip header,所以我只介绍一些需要注意的field。
Header Length:仅仅是IP header的长度,是4字节的倍数,如果没有options,则为20bytes。
Type of Service (TOS):根据RFC791 和 1349定义如下图:
而RFC 2474 定义前六个bi...
分类:
其他好文 时间:
2015-02-06 11:25:38
阅读次数:
196
Linux会对一个网络包(packet)的收和发做大量的处理。packet在被发送之前会被存在队列中,而在被接受之后也会存在队列中,共有三个队列:reception(接收),transmission(发送)和Backlog。它们都受到spinlock的保护,是为了保证在并发访问时的一致性。言归正传,接下来看看当一个packet到达NIC(网卡)时,linux都会做些什么工作。
先来看一个图(来自...
分类:
系统相关 时间:
2015-02-05 00:50:25
阅读次数:
254
转自http://www.51testing.com/html/76/428076-819055.html 1 网上说要改mysql的my.ini文件。没看到对应的文件啊。看到MySQL Server 5.5目录下有六个ini,分别是my-huge.ini,......,my-template.ini。到mysql的官...
分类:
数据库 时间:
2015-02-04 14:53:17
阅读次数:
311
使用Connector/J连接MySQL数据库,程序运行较长时间后就会报以下错误:Communications link failure,The last packet successfully received from the server was *** millisecond ago.The...
分类:
其他好文 时间:
2015-02-04 10:49:36
阅读次数:
176
MySQL Packets larger than max_allowed_packet are not allowedMySQL的一个系统参数:max_allowed_packet,其默认值为1048576(1M), 查询:show VARIABLES like '%max_allowed_pac...
分类:
数据库 时间:
2015-02-03 10:50:52
阅读次数:
381
基于Smack 实现Notification数据包。smack的类中有一个org.jivesoftware.smack.packet.IQ只需对他重写即可,在做的时候其实可以简单一点的,如果你使用tinder.jar 包,其IQ org.xmpp.packet.IQ 有一个 setChildEl.....
分类:
系统相关 时间:
2015-02-01 17:34:55
阅读次数:
175