- 博客(3)
- 资源 (5)
- 收藏
- 关注
原创 websocket -- 备面试装逼使用
1.WebSocket protocol 是HTML5一种新的协议。它实现了浏览器与服务器全双工通信(full-duplex)。建立在传输层(tcp之上) 2. WebSocket protocol 。 现很多网站为了实现即时通讯,所用的技术都是轮询(polling)。轮询是在特定的的时间间隔(如每1秒),由浏览器对服务器发出HTTP request,然后由服务器返回最新的数
2016-12-19 14:13:43 10243 2
原创 websocekt-python与Js交互(2)
# -*- coding:utf8 -*- import threading import hashlib import socket import base64 class websocket_thread(threading.Thread): def __init__(self, connection): super(websocket_thread, self)
2016-12-19 11:39:54 1330 1
原创 websocekt-python与Js交互(1)
下载了一个websocket的demo,tcp流式socket,发现代码中,服务端有发送请求头的代码,就想着是不是两端都要遵循着三次握手的原则,就好顿查。以下是知识科普,补一补忘掉的只是,代码在下一章。 TCP/IP 要想理解socket首先得熟悉一下TCP/IP协议族, TCP/IP(Transmission Control Protocol/Internet Proto
2016-12-01 15:39:01 5456
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人