Documentation ¶
Index ¶
- func Join(c1 *Conn, c2 *Conn)
- func JoinMore(c1 *Conn, c2 *Conn, cryptKey string)
- func PipeDecrypt(r net.Conn, w net.Conn, key string) error
- func PipeEncrypt(r net.Conn, w net.Conn, key string) error
- type Conn
- func (c *Conn) Close()
- func (c *Conn) GetLocalAddr() (addr string)
- func (c *Conn) GetRemoteAddr() (addr string)
- func (c *Conn) IsClosed() (closeFlag bool)
- func (c *Conn) ReadLine() (buff string, err error)
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) Write(content string) (err error)
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinMore ¶ added in v0.3.0
messages from c1 to c2 will be encrypted and from c2 to c1 will be decrypted
func PipeDecrypt ¶ added in v0.3.0
decrypt msg from reader, then write into writer
Types ¶
type Conn ¶
type Conn struct { TcpConn net.Conn Reader *bufio.Reader // contains filtered or unexported fields }
wrap for TCPConn
func (*Conn) GetLocalAddr ¶
func (*Conn) GetRemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.