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 NewBufNode(buf []byte, l int) *bufNode
- func NewConn(connId int32, mux *Mux) *conn
- func NewConnMap() *connMap
- func NewQueue() *sliceEntry
- func ReadLenBytes(buf []byte, r io.Reader) (int, error)
- func WriteLenBytes(buf []byte, w io.Writer) (int, error)
- type Element
- 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 Queue
Constants ¶
View Source
const ( MUX_PING_FLAG int32 = iota MUX_NEW_CONN_OK MUX_NEW_CONN_Fail MUX_NEW_MSG MUX_MSG_SEND_OK MUX_NEW_CONN MUX_PING MUX_CONN_CLOSE MUX_PING_RETURN )
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 NewBufNode ¶ added in v0.18.1
func NewConnMap ¶
func NewConnMap() *connMap
Types ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.