Documentation
¶
Index ¶
Constants ¶
View Source
const NotFound = `` /* 612-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NotFoundResponse ¶
Types ¶
type BufferedConn ¶
func NewBufferedConn ¶
func NewBufferedConn(c net.Conn) *BufferedConn
func (*BufferedConn) Buffered ¶
func (c *BufferedConn) Buffered() int
func (*BufferedConn) Peek ¶
func (c *BufferedConn) Peek(n int) ([]byte, error)
Peek returns the next n bytes without advancing the reader.
func (*BufferedConn) ReadByte ¶
func (c *BufferedConn) ReadByte() (byte, error)
func (*BufferedConn) Reader ¶
func (c *BufferedConn) Reader() *bufio.Reader
Reader returns the internal bufio.Reader.
func (*BufferedConn) UnreadByte ¶
func (c *BufferedConn) UnreadByte() error
type Listener ¶
func (*Listener) ListenAndServe ¶
func (l *Listener) ListenAndServe(handler IConnHandler) (err error)
func (*Listener) RawAddress ¶
type SecureTCPConn ¶
type SecureTCPConn struct {
io.ReadWriteCloser
}
SecureTCPConn 加密传输的 TCP Socket
func (*SecureTCPConn) EncodeCopy ¶
func (secureSocket *SecureTCPConn) EncodeCopy(token []byte, dst io.ReadWriteCloser) error
func (*SecureTCPConn) EncodeWrite ¶
func (secureSocket *SecureTCPConn) EncodeWrite(token, bs []byte) (int, error)
EncodeWrite 把放在bs里的数据加密后立即全部写入输出流
Click to show internal directories.
Click to hide internal directories.