netiface

package
v0.0.0-...-6920965 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameConn

type GameConn interface {
	Read(p []byte) (n int, err error)
	Write(p []byte) (n int, err error)
	Close() error
	ReadLine() (string, error)
	RemoteAddr() net.Addr
}

type SSHConn

type SSHConn struct {
	Session ssh.Session
}

func (*SSHConn) Close

func (c *SSHConn) Close() error

func (*SSHConn) Read

func (c *SSHConn) Read(p []byte) (int, error)

func (*SSHConn) ReadLine

func (c *SSHConn) ReadLine() (string, error)

func (*SSHConn) RemoteAddr

func (c *SSHConn) RemoteAddr() net.Addr

func (*SSHConn) Write

func (c *SSHConn) Write(p []byte) (int, error)

type TelnetConn

type TelnetConn struct {
	Conn net.Conn
}

func (*TelnetConn) Close

func (c *TelnetConn) Close() error

func (*TelnetConn) Read

func (c *TelnetConn) Read(p []byte) (int, error)

func (*TelnetConn) ReadLine

func (c *TelnetConn) ReadLine() (string, error)

func (*TelnetConn) RemoteAddr

func (c *TelnetConn) RemoteAddr() net.Addr

func (*TelnetConn) Write

func (c *TelnetConn) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址