Documentation ¶
Overview ¶
* i2p connector
Index ¶
- Constants
- type Addr
- type Base32Addr
- type I2PConn
- func (c *I2PConn) Close() error
- func (c *I2PConn) LocalAddr() net.Addr
- func (c *I2PConn) Read(d []byte) (n int, err error)
- func (c *I2PConn) RemoteAddr() net.Addr
- func (c *I2PConn) SetDeadline(t time.Time) error
- func (c *I2PConn) SetReadDeadline(t time.Time) error
- func (c *I2PConn) SetWriteDeadline(t time.Time) error
- func (c *I2PConn) Write(d []byte) (n int, err error)
- type I2PPacketConn
- func (c *I2PPacketConn) Close() error
- func (c *I2PPacketConn) LocalAddr() net.Addr
- func (c *I2PPacketConn) ReadFrom(d []byte) (n int, from net.Addr, err error)
- func (c *I2PPacketConn) SetDeadline(t time.Time) error
- func (c *I2PPacketConn) SetReadDeadline(t time.Time) error
- func (c *I2PPacketConn) SetWriteDeadline(t time.Time) error
- func (c *I2PPacketConn) WriteTo(d []byte, to net.Addr) (n int, err error)
- type Keyfile
- type Session
Constants ¶
View Source
const DEFAULT_ADDRESS = "127.0.0.1:7656"
default address of i2p interface
View Source
const DEFAULT_KEYFILE = "xd-privkey.dat"
default path to private keys
View Source
const DEFAULT_NAME = "XD"
default i2p session name
View Source
const SigType = 7
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I2PConn ¶
type I2PConn struct {
// contains filtered or unexported fields
}
tcp/i2p connection implements net.Conn
func (*I2PConn) SetReadDeadline ¶
implements net.Conn
func (*I2PConn) SetWriteDeadline ¶
implements net.Conn
type I2PPacketConn ¶
type I2PPacketConn struct {
// contains filtered or unexported fields
}
tcp/i2p connection implements net.Conn
func (*I2PPacketConn) LocalAddr ¶
func (c *I2PPacketConn) LocalAddr() net.Addr
implements net.PacketConn
func (*I2PPacketConn) SetDeadline ¶
func (c *I2PPacketConn) SetDeadline(t time.Time) error
implements net.PacketConn
func (*I2PPacketConn) SetReadDeadline ¶
func (c *I2PPacketConn) SetReadDeadline(t time.Time) error
implements net.PacketConn
func (*I2PPacketConn) SetWriteDeadline ¶
func (c *I2PPacketConn) SetWriteDeadline(t time.Time) error
implements net.PacketConn
type Keyfile ¶
type Keyfile struct {
// contains filtered or unexported fields
}
a destination keypair file
type Session ¶
type Session interface { // get session name Name() string // open a new control socket // does handshaske OpenControlSocket() (net.Conn, error) // get printable b32.i2p address B32Addr() string // implements network.Network Addr() net.Addr // implements net.PacketConn LocalAddr() net.Addr // implements network.Network ReadFrom([]byte) (int, net.Addr, error) // implements network.Network WriteTo([]byte, net.Addr) (int, error) // implements network.Network Accept() (net.Conn, error) // implements network.Session Lookup(name, port string) (net.Addr, error) // lookup an i2p address LookupI2P(name string) (Addr, error) // implements network.Network Dial(n, a string) (net.Conn, error) // dial out to a remote destination DialI2P(a Addr) (net.Conn, error) // open the session, generate keys, start up destination etc Open() error // close the session Close() error }
i2p network session
Click to show internal directories.
Click to hide internal directories.