客户端:
握手请求1:
Request URL:ws://127.0.0.1:12345/WebSoket2/server.php
Request Method:GET
Status Code:101 Web Socket Protocol Handshake
Request Headersview source
Cache-Control:no-cache
Connection:Upgrade
Host:127.0.0.1:12345
Origin:http://localhost
Pragma:no-cache
Sec-WebSocket-Extensions:x-webkit-deflate-frame
Sec-WebSocket-Key:C2atq27SYNkUXfM3Sogxjg==
Sec-WebSocket-Version:13
Upgrade:websocket
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Response Headersview source
Connection:Upgrade
Sec-WebSocket-Accept:0nyrlOyDoMCdTKabKk0RwoAgtwU=
Upgrade:websocket
WebSocket-Location:ws://127.0.0.1:12345/WebSoket2/server.php
WebSocket-Origin:http://localhost
握手请求2:
Request URL:ws://127.0.0.1:12345/WebSoket2/server.php
Request Method:GET
Status Code:101 Web Socket Protocol Handshake
Request Headersview source
Cache-Control:no-cache
Connection:Upgrade
Host:127.0.0.1:12345
Origin:http://localhost
Pragma:no-cache
Sec-WebSocket-Extensions:x-webkit-deflate-frame
Sec-WebSocket-Key:1MTlSvnWl7toT0NLZKM7rA==
Sec-WebSocket-Version:13
Upgrade:websocket
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Response Headersview source
Connection:Upgrade
Sec-WebSocket-Accept:scl7gp48tI1rJUN3xTJujrV9mt4=
Upgrade:websocket
WebSocket-Location:ws://127.0.0.1:12345/WebSoket2/server.php
WebSocket-Origin:http://localhost
详解HTML5的WebSocket数据包协议
http://www.fengfly.com/plus/view-210878-1.html
详解HTML5的WebSocket数据包协议(2)
http://www.fengfly.com/plus/view-210878-2.html
WebSocket不同版本的三种握手方式以及一个Netty实现JAVA类
http://blog.youkuaiyun.com/it_man/article/details/7168391
SYN(synchronize)是TCP/IP建立连接时使用的握手信号。
HTTP协议分析之“三次握手”
http://blog.youkuaiyun.com/summerhust/article/details/6394637
为WEBSOCKET应用实现负载均衡
http://www.blogjava.net/xiaomage234/archive/2013/04/18/398047.html
理解TCP为什么需要进行三次握手(白话)
http://zhuyanfeng.com/archives/690
TCP三次握手及四次挥手详细图解
http://www.cnblogs.com/hnrainll/archive/2011/10/14/2212415.html
TCP的三次握手/四次挥手以及状态变迁图
http://hi.baidu.com/suxinpingtao51/item/be5f71b3a907dbef4ec7fd0e
WebSocket 是什么原理?为什么可以实现持久连接?
http://www.zhihu.com/question/20215561
WebSocket 为什么不直接使用标准的 socket 的实现方式?
Flash Socket安全问题的全面解析
http://wangleifire.iteye.com/blog/335034
WebSocket
http://en.wikipedia.org/wiki/WebSocket
The WebSocket Protocol
http://tools.ietf.org/html/rfc6455
移动开发:websocket规范 RFC6455 中文版
http://www.xue5.com/Mobile/Mobile/647813.html
详解HTML5的WebSocket数据包协议
http://www.fengfly.com/plus/view-210878-1.html
TCP建立连接为什么是三次握手而不是两次握手?
http://bbs.youkuaiyun.com/topics/390288715
The WebSocket Protocol RFC 6455
http://datatracker.ietf.org/doc/rfc6455/?include_text=1
A C++ Websocket server for realtime interaction with Web clients
http://www.codeproject.com/Articles/371188/A-Cplusplus-Websocket-Server-For-realtime-interact
Beetle可靠、高性能的.Net Socket Tcp通讯组件 支持flash amf3,protobuf,Silverlight,windows phone
HTML5-WebSocket实现多文件同时上传
http://www.cnblogs.com/smark/archive/2012/12/17/2822487.html
使用Beetle简单构建高性能Socket tcp应用
http://www.cnblogs.com/smark/archive/2012/02/21/2361865.html