以下讲解基本TCP套接字函数。1、socket 函数 指定期望的通信协议类型。#include/*See NOTES*/#includeintsocket(intdomain,inttype,intprotocol);返回:若成功则为非负描述符,出错则为-1。参数说明:domain: 指明协议族,也...
分类:
其他好文 时间:
2014-09-23 23:09:26
阅读次数:
294
原连接http://blog.chinaunix.net/uid-21335514-id-3497996.htmlkeystone的v3 API与v2.0相比有很大的不同,从API的请求格式到response的返回结果都有差别,主要几点如下:1. 引入了domain的概念,domain是在proje...
location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati...
分类:
Web程序 时间:
2014-09-23 15:44:54
阅读次数:
251
一、/etc/resolv.confnameserver192.168.100.2domainburanle.comsearchburanle.comsortlist117.0.0.0/255.0.0.0nameserver:DNS服务器,目前红帽系统仅支持3个nameserver,多余的配置无效domain:定义本地域名。很多程序用到它,如邮件系统;当为没有域名的主机进行DNS查询时,..
分类:
系统相关 时间:
2014-09-23 02:48:34
阅读次数:
237
[java] 2014-09-23 00:11:34,877 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:141:INFO ] [[[main(Domain:http://localhost)] Request Begu...
分类:
其他好文 时间:
2014-09-23 02:28:03
阅读次数:
344
JavaScript跨域总结与解决办法什么是跨域1、document.domain+iframe的设置2、动态创建script3、利用iframe和location.hash4、window.name实现的跨域数据传输5、使用HTML5 postMessage6、利用flash本文来自网络(http...
分类:
Web程序 时间:
2014-09-23 02:27:03
阅读次数:
392
> select p.dt, p.cookie_qunar_global, p.refer_domain, p.kwid, p.query_word, p,traffic_type--, p.page_type > from tmp_vincent_dw_beacon_path_data_0...
分类:
其他好文 时间:
2014-09-22 18:13:52
阅读次数:
14385
//设置cookiefunction setCookie(name,value,expires,path,domain,secure){ var cookieName = encodeURIComponent(name) + '=' + encodeURIComponent(value); ...
分类:
编程语言 时间:
2014-09-21 20:27:01
阅读次数:
262
一、totalCount
最近在用grails开发项目,在createCriteria中使用group by的时候发现PagedResultList中的totalCount有问题。
查阅了很多官方的非官方的资料后,最终得出一条临时方便的解决办法:
int totalCount = Domain.executeQuery('select count(*) from
domain where...
分类:
其他好文 时间:
2014-09-20 16:35:39
阅读次数:
351