Documentation ¶
Overview ¶
Package jsonSubProto is implemented JSON socket communication protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewJsonSubProtoFunc = func(rw io.ReadWriter) tp.Proto { var ( readBufioSize int readBufferSize, isDefault = tp.SocketReadBuffer() ) if isDefault { readBufioSize = 1024 * 4 } else if readBufferSize == 0 { readBufioSize = 1024 * 35 } else { readBufioSize = readBufferSize / 2 } return &jsonSubProto{ id: 'j', name: "json", r: bufio.NewReaderSize(rw, readBufioSize), w: rw, } }
NewJsonSubProtoFunc is creation function of JSON socket protocol.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.