websocket
鏈嶅姟鍣紙
python
鐗堬級
鏈嶅姟鍣?/p>
#coding=utf8
#!/usr/bin/python
import struct,socket
import hashlib
import threading,random
import time
import struct
from base64 import b64encode, b64decode
connectionlist = {}
g_code_length = 0
g_header_length = 0
def hex2dec(string_num):
return str(int(string_num.upper(), 16))