mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
general: add dev_linux conditional build codes
This commit is contained in:
parent
ff1fb8c291
commit
bb45b671c0
1
dev.go
1
dev.go
@ -7,7 +7,6 @@ import (
|
||||
_ "net/http/pprof"
|
||||
|
||||
_ "github.com/nadoo/glider/proxy/ws"
|
||||
// _ "github.com/nadoo/glider/proxy/tproxy"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
5
dev_linux.go
Normal file
5
dev_linux.go
Normal file
@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/nadoo/glider/proxy/tproxy"
|
||||
)
|
@ -1,4 +1,24 @@
|
||||
// https://tools.ietf.org/html/rfc6455
|
||||
// https://tools.ietf.org/html/rfc6455#section-5.2
|
||||
//
|
||||
// Frame Format
|
||||
// 0 1 2 3
|
||||
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
||||
// +-+-+-+-+-------+-+-------------+-------------------------------+
|
||||
// |F|R|R|R| opcode|M| Payload len | Extended payload length |
|
||||
// |I|S|S|S| (4) |A| (7) | (16/64) |
|
||||
// |N|V|V|V| |S| | (if payload len==126/127) |
|
||||
// | |1|2|3| |K| | |
|
||||
// +-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - +
|
||||
// | Extended payload length continued, if payload len == 127 |
|
||||
// + - - - - - - - - - - - - - - - +-------------------------------+
|
||||
// | |Masking-key, if MASK set to 1 |
|
||||
// +-------------------------------+-------------------------------+
|
||||
// | Masking-key (continued) | Payload Data |
|
||||
// +-------------------------------- - - - - - - - - - - - - - - - +
|
||||
// : Payload Data continued ... :
|
||||
// + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
|
||||
// | Payload Data continued ... |
|
||||
// +---------------------------------------------------------------+
|
||||
|
||||
package ws
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user