Documentation ¶
Index ¶
Constants ¶
View Source
const ( KILOBYTE = 1024 MEGABYTE = 1024 * 1024 GIGABYTE = 1024 * 1024 * 1024 )
View Source
const BASECHUNK = 340
View Source
const CLICHUNK = 4096
View Source
const COPTIONSEP = ":"
View Source
const ICMPCHUNK = 128
View Source
const ICMPPKT = 1500 - 20 - 8
View Source
const TCPCHUNK = 1320
View Source
const UDPCHUNK = 384
Variables ¶
View Source
var Connectors = map[string]Connector{}
Functions ¶
Types ¶
type Connector ¶
type Connector interface { Name() string Description() string Stats() *ConnectorStats Connect(listen, plain bool, address string) (Connector, error) Close() Read() ([]byte, int, error) Write(buf []byte, length int) (int, error) }
func NewConsoleConnector ¶
func NewConsoleConnector() Connector
func NewDnsConnector ¶
func NewDnsConnector() Connector
func NewIcmpConnector ¶
func NewIcmpConnector() Connector
func NewTcpConnector ¶
func NewTcpConnector() Connector
func NewUdpConnector ¶
func NewUdpConnector() Connector
type ConnectorStats ¶
type ConnectorStats struct {
// contains filtered or unexported fields
}
func (*ConnectorStats) Recv ¶
func (cs *ConnectorStats) Recv() int
func (*ConnectorStats) Send ¶
func (cs *ConnectorStats) Send() int
func (*ConnectorStats) String ¶
func (cs *ConnectorStats) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.