sockaddr结构体sockaddr的缺陷:struct sockaddr 是一个通用地址结构,这是为了统一地址结构的表示方法,统一接口函数,使不同的地址结构可以被bind() , connect() 等函数调用;sa_data把目标地址和端口信息混在一起了struct sockaddr { un...
分类:
其他好文 时间:
2014-07-16 19:22:47
阅读次数:
232
C++ 11 tr1 boost bind function
分类:
编程语言 时间:
2014-07-16 18:17:07
阅读次数:
190
并不是用了绑定变量就一定都会游标共享,下面我们介绍的就是一种例子。BIND_MISMATCH导致VERSION COUNT过多的原因解释:This is due to the bind buffer mismatch of the current child cursor. If oracle is...
分类:
其他好文 时间:
2014-07-16 18:16:45
阅读次数:
295
一般的情况下,对于这种情况,我们常规的思路是,先解绑,再绑定,如下:$(selector).unbind('click').bind('click',function(){....});当这样会有一个问题,unbind会把其之前的所有的click事件都unbind掉,可能会影响其他的绑定,有如下有两...
分类:
Web程序 时间:
2014-07-16 15:26:37
阅读次数:
197
问题:编译Socket时候出现socket bind error:Socket operation on non-socket时间:2014-7-14解决:注意“==”和“=”的优先级,前者是大于后者的,故而在处理一些表达式的时候,注意加括号注意:注意下面标注闪光字体的地方#include #inc...
分类:
其他好文 时间:
2014-07-16 15:21:29
阅读次数:
190
1.finddb.bind_info.find({ "bd_type" : 1 })2.countdb.bind_info.find({ "bd_type" : 1 }).count();3.返回固定字段db.users.find({},{"name":1,"age":1})如:如果你想创建一个“m...
分类:
数据库 时间:
2014-07-16 15:19:49
阅读次数:
308
select下拉列表onChange事件之JQuery实现:Java代码JQuery:$(document).ready(function(){$("#selectMenu").bind("change",function(){if($(this).val()=="pro1"){$("#pro1")...
分类:
Web程序 时间:
2014-07-16 00:53:38
阅读次数:
481
Cacti做为当今天运维人员的主流监控工具已经应该很广泛了,下面我就来把我的安装步骤罗列如下;(1).Cacti安装之前要准备Linx平台下的Web架构;(2).Linux下的Web搭建的方法如下;[root@Monitor-Cacti~]#yum-yinstallhttpdmysql-serverphpphp-mysqlgdnet-snmpphp-snmpnet-snmp-util..
1.使用get方式时,url类似如下格式:
[html] view
plaincopy
index.jsp?id=100&op=bind
GET报问头如下:
[html] view
plaincopy
GET /sn/index.php?sn=123&n=asa HTTP/1.1
Accept: */*...
分类:
编程语言 时间:
2014-07-14 18:42:29
阅读次数:
336
服务端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.67.15.96‘port=889s.bind((host,port))s.listen(5)whileTrue:c,addr=s.accept()print‘++++++‘c.send(‘server‘)b=c.recv(1024)printbc.close()客户端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.6..
分类:
其他好文 时间:
2014-07-14 16:24:40
阅读次数:
183