Documentation ¶
Index ¶
- type Conn
- func (p *Conn) Addr() *net.TCPAddr
- func (p *Conn) CancelRequest(msg peerprotocol.CancelMessage)
- func (p *Conn) Close()
- func (p *Conn) CloseConn()
- func (p *Conn) IP() string
- func (p *Conn) Logger() logger.Logger
- func (p *Conn) Messages() <-chan interface{}
- func (p *Conn) Run()
- func (p *Conn) SendMessage(msg peerprotocol.Message)
- func (p *Conn) SendPiece(msg peerprotocol.RequestMessage, pi io.ReaderAt)
- func (p *Conn) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) CancelRequest ¶
func (p *Conn) CancelRequest(msg peerprotocol.CancelMessage)
func (*Conn) SendMessage ¶
func (p *Conn) SendMessage(msg peerprotocol.Message)
func (*Conn) SendPiece ¶
func (p *Conn) SendPiece(msg peerprotocol.RequestMessage, pi io.ReaderAt)
Click to show internal directories.
Click to hide internal directories.