码迷,mamicode.com
首页 >  
搜索关键字:magic packet    ( 2626个结果
一次刨根问底的socket收包过程(Linux)
Linux会对一个网络包(packet)的收和发做大量的处理。packet在被发送之前会被存在队列中,而在被接受之后也会存在队列中,共有三个队列:reception(接收),transmission(发送)和Backlog。它们都受到spinlock的保护,是为了保证在并发访问时的一致性。言归正传,接下来看看当一个packet到达NIC(网卡)时,linux都会做些什么工作。 先来看一个图(来自...
分类:系统相关   时间:2015-02-05 00:50:25    阅读次数:254
PAT1058. A+B in Hogwarts
If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver ...
分类:其他好文   时间:2015-02-04 16:24:31    阅读次数:240
修改mysql的max_allowed_packet值
转自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
Communications link failure的解决办法
使用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
hdu 3794 Magic Coupon
浙大计算机研究生保研复试上机考试-2011年贪心:注意:输入输出用scanf printf 可以加快速度,用cin WA 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; ...
分类:其他好文   时间:2015-02-03 22:40:42    阅读次数:205
1058. A+B in Hogwarts
1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would know the world of magic...
分类:其他好文   时间:2015-02-03 22:39:22    阅读次数:204
MySQL Packets larger than max_allowed_packet are not allowed
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的xmpp packet 重写
基于Smack 实现Notification数据包。smack的类中有一个org.jivesoftware.smack.packet.IQ只需对他重写即可,在做的时候其实可以简单一点的,如果你使用tinder.jar 包,其IQ org.xmpp.packet.IQ 有一个 setChildEl.....
分类:系统相关   时间:2015-02-01 17:34:55    阅读次数:175
1037. Magic Coupon (25)
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int cmp(int a,int b) 8 { 9 return a v1;19 for(i=0;i v2;30 ...
分类:其他好文   时间:2015-02-01 09:32:33    阅读次数:173
MySQL Packets larger than max_allowed_packet are not allowed
MySQL的一个系统参数:max_allowed_packet,其默认值为1048576(1M), 查询:show VARIABLES like '%max_allowed_packet%'; 修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_...
分类:数据库   时间:2015-01-31 16:02:59    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!