Versions in this module Expand all Collapse all v0 v0.8.698 Aug 29, 2017 Changes in this version + type Conn interface + func ConnectTcpServer(addr string) (c Conn, err error) + func ConnectTcpServerByHttpProxy(httpProxy string, serverAddr string) (c Conn, err error) + func WrapConn(c net.Conn) Conn + func WrapReadWriteCloserToConn(rwc io.ReadWriteCloser) Conn + type FakeUdpConn struct + func NewFakeUdpConn(l *UdpListener, laddr, raddr net.Addr) *FakeUdpConn + func (c *FakeUdpConn) Close() error + func (c *FakeUdpConn) IsClosed() bool + func (c *FakeUdpConn) LocalAddr() net.Addr + func (c *FakeUdpConn) Read(b []byte) (n int, err error) + func (c *FakeUdpConn) RemoteAddr() net.Addr + func (c *FakeUdpConn) SetDeadline(t time.Time) error + func (c *FakeUdpConn) SetReadDeadline(t time.Time) error + func (c *FakeUdpConn) SetWriteDeadline(t time.Time) error + func (c *FakeUdpConn) Write(b []byte) (n int, err error) + type Listener interface + Accept func() (Conn, error) + Close func() error + type TcpConn struct + func NewTcpConn(conn *net.TCPConn) (c *TcpConn) + type TcpListener struct + func ListenTcp(bindAddr string, bindPort int64) (l *TcpListener, err error) + func (l *TcpListener) Accept() (Conn, error) + func (l *TcpListener) Close() error + type UdpListener struct + func ListenUDP(bindAddr string, bindPort int64) (l *UdpListener, err error) + func (l *UdpListener) Accept() (Conn, error) + func (l *UdpListener) Close() error + func (l *UdpListener) WriteMsg(buf []byte, remoteAddr *net.UDPAddr) (err error) + type UdpPacket struct + Buf []byte + LocalAddr net.Addr + RemoteAddr net.Addr + type WrapLogConn struct + type WrapReadWriteCloserConn struct + func (conn *WrapReadWriteCloserConn) LocalAddr() net.Addr + func (conn *WrapReadWriteCloserConn) RemoteAddr() net.Addr + func (conn *WrapReadWriteCloserConn) SetDeadline(t time.Time) error + func (conn *WrapReadWriteCloserConn) SetReadDeadline(t time.Time) error + func (conn *WrapReadWriteCloserConn) SetWriteDeadline(t time.Time) error