Documentation ¶
Overview ¶
This module is used for port reuse Distinguish client, web manager , HTTP and HTTPS according to the difference of protocol
Index ¶
- Constants
- func NewBandwidth(fd *os.File) *bandwidth
- func NewConn(connId int32, mux *Mux, label ...string) *conn
- func NewConnMap() *connMap
- func NewListElement(buf []byte, l uint16, part bool) (element *common.ListElement, err error)
- func NewLogServer()
- func NewWriteBandwidth() *writeBandwidth
- func ReadLenBytes(buf []byte, r io.Reader) (int, error)
- func WriteLenBytes(buf []byte, w io.Writer) (int, error)
- type ConnQueue
- type IntSlice
- type Mux
- type PortConn
- func (pConn *PortConn) Close() error
- func (pConn *PortConn) LocalAddr() net.Addr
- func (pConn *PortConn) Read(b []byte) (n int, err error)
- func (pConn *PortConn) RemoteAddr() net.Addr
- func (pConn *PortConn) SetDeadline(t time.Time) error
- func (pConn *PortConn) SetReadDeadline(t time.Time) error
- func (pConn *PortConn) SetWriteDeadline(t time.Time) error
- func (pConn *PortConn) Write(b []byte) (n int, err error)
- type PortListener
- type PortMux
- type PriorityQueue
- type ReceiveWindow
- func (Self *ReceiveWindow) CloseWindow()
- func (Self *ReceiveWindow) New(mux *Mux)
- func (Self *ReceiveWindow) Read(p []byte, id int32) (n int, err error)
- func (Self *ReceiveWindow) SetTimeOut(t time.Time)
- func (Self *ReceiveWindow) Stop()
- func (Self *ReceiveWindow) Write(buf []byte, l uint16, part bool, id int32) (err error)
- type ReceiveWindowQueue
- func (Self *ReceiveWindowQueue) Len() (n uint32)
- func (Self *ReceiveWindowQueue) Pop() (element *common.ListElement, err error)
- func (Self *ReceiveWindowQueue) Push(element *common.ListElement)
- func (Self *ReceiveWindowQueue) SetTimeOut(t time.Time)
- func (Self *ReceiveWindowQueue) Stop()
- func (Self *ReceiveWindowQueue) TryPop() (element *common.ListElement)
- type SendWindow
- func (Self *SendWindow) CloseWindow()
- func (Self *SendWindow) New(mux *Mux)
- func (Self *SendWindow) SetSendBuf(buf []byte)
- func (Self *SendWindow) SetSize(currentMaxSizeDone uint64) (closed bool)
- func (Self *SendWindow) SetTimeOut(t time.Time)
- func (Self *SendWindow) WriteFull(buf []byte, id int32) (n int, err error)
- func (Self *SendWindow) WriteTo() (p []byte, sendSize uint32, part bool, err error)
Constants ¶
View Source
const ( HTTP_GET = 716984 HTTP_POST = 807983 HTTP_HEAD = 726965 HTTP_PUT = 808585 HTTP_DELETE = 686976 HTTP_CONNECT = 677978 HTTP_OPTIONS = 798084 HTTP_TRACE = 848265 CLIENT = 848384 ACCEPT_TIME_OUT = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewBandwidth ¶ added in v0.26.0
func NewConnMap ¶
func NewConnMap() *connMap
func NewListElement ¶ added in v0.26.0
func NewLogServer ¶ added in v0.26.0
func NewLogServer()
func NewWriteBandwidth ¶ added in v0.26.0
func NewWriteBandwidth() *writeBandwidth
Types ¶
type ConnQueue ¶ added in v0.26.0
type ConnQueue struct {
// contains filtered or unexported fields
}
type PortConn ¶ added in v0.18.1
func (*PortConn) RemoteAddr ¶ added in v0.18.1
func (*PortConn) SetDeadline ¶ added in v0.18.1
func (*PortConn) SetReadDeadline ¶ added in v0.18.1
func (*PortConn) SetWriteDeadline ¶ added in v0.18.1
type PortListener ¶ added in v0.18.1
func NewPortListener ¶ added in v0.18.1
func NewPortListener(connCh chan *PortConn, addr net.Addr) *PortListener
func (*PortListener) Accept ¶ added in v0.18.1
func (pListener *PortListener) Accept() (net.Conn, error)
func (*PortListener) Addr ¶ added in v0.18.1
func (pListener *PortListener) Addr() net.Addr
func (*PortListener) Close ¶ added in v0.18.1
func (pListener *PortListener) Close() error
type PortMux ¶ added in v0.18.1
func NewPortMux ¶ added in v0.18.1
func (*PortMux) GetClientListener ¶ added in v0.18.1
func (*PortMux) GetHttpListener ¶ added in v0.18.1
func (*PortMux) GetHttpsListener ¶ added in v0.18.1
func (*PortMux) GetManagerListener ¶ added in v0.18.1
type PriorityQueue ¶ added in v0.26.0
type PriorityQueue struct {
// contains filtered or unexported fields
}
func (*PriorityQueue) New ¶ added in v0.26.0
func (Self *PriorityQueue) New()
func (*PriorityQueue) Pop ¶ added in v0.26.0
func (Self *PriorityQueue) Pop() (packager *common.MuxPackager)
func (*PriorityQueue) Push ¶ added in v0.26.0
func (Self *PriorityQueue) Push(packager *common.MuxPackager)
func (*PriorityQueue) Stop ¶ added in v0.26.0
func (Self *PriorityQueue) Stop()
func (*PriorityQueue) TryPop ¶ added in v0.26.0
func (Self *PriorityQueue) TryPop() (packager *common.MuxPackager)
type ReceiveWindow ¶ added in v0.26.0
type ReceiveWindow struct {
// contains filtered or unexported fields
}
func (*ReceiveWindow) CloseWindow ¶ added in v0.26.0
func (Self *ReceiveWindow) CloseWindow()
func (*ReceiveWindow) New ¶ added in v0.26.0
func (Self *ReceiveWindow) New(mux *Mux)
func (*ReceiveWindow) Read ¶ added in v0.26.0
func (Self *ReceiveWindow) Read(p []byte, id int32) (n int, err error)
func (*ReceiveWindow) SetTimeOut ¶ added in v0.26.0
func (Self *ReceiveWindow) SetTimeOut(t time.Time)
func (*ReceiveWindow) Stop ¶ added in v0.26.0
func (Self *ReceiveWindow) Stop()
type ReceiveWindowQueue ¶ added in v0.26.0
type ReceiveWindowQueue struct {
// contains filtered or unexported fields
}
func NewReceiveWindowQueue ¶ added in v0.26.0
func NewReceiveWindowQueue() *ReceiveWindowQueue
func (*ReceiveWindowQueue) Len ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) Len() (n uint32)
func (*ReceiveWindowQueue) Pop ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) Pop() (element *common.ListElement, err error)
func (*ReceiveWindowQueue) Push ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) Push(element *common.ListElement)
func (*ReceiveWindowQueue) SetTimeOut ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) SetTimeOut(t time.Time)
func (*ReceiveWindowQueue) Stop ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) Stop()
func (*ReceiveWindowQueue) TryPop ¶ added in v0.26.0
func (Self *ReceiveWindowQueue) TryPop() (element *common.ListElement)
type SendWindow ¶ added in v0.26.0
type SendWindow struct {
// contains filtered or unexported fields
}
func (*SendWindow) CloseWindow ¶ added in v0.26.0
func (Self *SendWindow) CloseWindow()
func (*SendWindow) New ¶ added in v0.26.0
func (Self *SendWindow) New(mux *Mux)
func (*SendWindow) SetSendBuf ¶ added in v0.26.0
func (Self *SendWindow) SetSendBuf(buf []byte)
func (*SendWindow) SetSize ¶ added in v0.26.0
func (Self *SendWindow) SetSize(currentMaxSizeDone uint64) (closed bool)
func (*SendWindow) SetTimeOut ¶ added in v0.26.0
func (Self *SendWindow) SetTimeOut(t time.Time)
Click to show internal directories.
Click to hide internal directories.