Documentation ¶
Overview ¶
This module is used for port reuse Distinguish client, web manager , HTTP and HTTPS according to the difference of protocol
Index ¶
- Constants
- 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
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 ¶
This section is empty.
Types ¶
type PortConn ¶
func (*PortConn) RemoteAddr ¶
type PortListener ¶
func NewPortListener ¶
func NewPortListener(connCh chan *PortConn, addr net.Addr) *PortListener
func (*PortListener) Addr ¶
func (pListener *PortListener) Addr() net.Addr
func (*PortListener) Close ¶
func (pListener *PortListener) Close() error
type PortMux ¶
func NewPortMux ¶
func (*PortMux) GetClientListener ¶
func (*PortMux) GetHttpListener ¶
func (*PortMux) GetHttpsListener ¶
func (*PortMux) GetManagerListener ¶
Click to show internal directories.
Click to hide internal directories.