Documentation ¶
Index ¶
- Constants
- Variables
- func GetUrlBuild(link string, data map[string]string) string
- type Agent
- type Conn
- type ConnSet
- type HttpSend
- type KKHandle
- type TCPClient
- type TCPConn
- func (tcpConn *TCPConn) Close()
- func (tcpConn *TCPConn) DirectWrite(b []byte)
- func (tcpConn *TCPConn) InitCrypt(k []byte)
- func (tcpConn *TCPConn) IsClosed() bool
- func (tcpConn *TCPConn) LocalAddr() net.Addr
- func (tcpConn *TCPConn) Read(b []byte) (n int, err error)
- func (tcpConn *TCPConn) ReadMsg() (*common.WorldPacket, error)
- func (tcpConn *TCPConn) RemoteAddr() net.Addr
- func (tcpConn *TCPConn) Write(b []byte)
- func (tcpConn *TCPConn) WriteMsg(packet *common.WorldPacket) error
- type TCPServer
- type WSConn
- func (wsConn *WSConn) Close()
- func (wsConn *WSConn) DirectWrite(b []byte)
- func (wsConn *WSConn) InitCrypt(k []byte)
- func (wsConn *WSConn) IsClosed() bool
- func (wsConn *WSConn) LocalAddr() net.Addr
- func (wsConn *WSConn) Read(b []byte) (n int, err error)
- func (wsConn *WSConn) ReadMsg() (*common.WorldPacket, error)
- func (wsConn *WSConn) RemoteAddr() net.Addr
- func (wsConn *WSConn) Write(b []byte)
- func (wsConn *WSConn) WriteMsg(packet *common.WorldPacket) error
- type WSServer
- type WsConnSet
Constants ¶
View Source
const HeaderLen uint32 = 4
Variables ¶
View Source
var ( GET_METHOD = "GET" POST_METHOD = "POST" SENDTYPE_FORM = "form" SENDTYPE_JSON = "json" )
Functions ¶
Types ¶
type HttpSend ¶
type HttpSend struct { Link string SendType string Header map[string]string Body map[string]string sync.RWMutex }
func NewHttpSend ¶
func (*HttpSend) SetSendType ¶
type KKHandle ¶
type KKHandle interface { ServeHTTP(w http.ResponseWriter, r *http.Request) Close() }
type TCPClient ¶
type TCPServer ¶
type TCPServer struct { Addr string MaxConnNum int NewAgent func(*TCPConn) Agent MaxMsgLen uint32 // contains filtered or unexported fields }
TCPServer TCP server manager
type WSConn ¶
func (*WSConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.