Documentation ¶
Index ¶
- Constants
- Variables
- func HostPort(host, port string) string
- func IsLocalHost(m *ice.Message, ip string) bool
- func PortRight(m *ice.Message, arg ...string) string
- func Prefix(arg ...ice.Any) string
- func PublishLocalhost(m *ice.Message, url string) string
- func UDPAddr(m *ice.Message, host, port string) *net.UDPAddr
- type Buf
- type Conn
- type Listener
- type PeekConn
- type Stat
Constants ¶
View Source
const ( UDP4 = "udp4" SEND = "send" RECV = "recv" ECHO = "echo" DIRECT = "direct" )
View Source
const ( LOCALHOST = "localhost" MAC_ADDRESS = "mac-address" MASK = "mask" DOMAIN = "domain" GATEWAY = "gateway" MACHINE = "machine" ISLOCAL = "islocal" PUBLISH = "publish" )
View Source
const ( PORT_22 = "22" PORT_80 = "80" PORT_443 = "443" PORT_9020 = "9020" PORT_9022 = "9022" SOCKET = "socket" BEGIN = "begin" CURRENT = "current" RANDOM = "random" END = "end" )
View Source
const ( PROTOCOL = "protocol" HOSTPORT = "hostport" HOSTNAME = "hostname" NODENAME = "nodename" BANDWIDTH = "bandwidth" ADDRESS = "address" )
View Source
const ( PROTO = "proto" STATUS = "status" ERROR = "error" START = "start" OPEN = "open" CLOSE = "close" STOP = "stop" )
View Source
const ( LISTEN = "listen" UNIX = "unix" )
View Source
const CLIENT = "client"
View Source
const (
DIAL = "dial"
)
View Source
const HOST = "host"
View Source
const PORT = "port"
View Source
const SERVER = "server"
View Source
const (
SSID = "ssid"
)
View Source
const TCP = "tcp"
View Source
const WIFI = "wifi"
Variables ¶
Functions ¶
Types ¶
type Buf ¶ added in v1.5.5
type Buf struct {
// contains filtered or unexported fields
}
type Conn ¶
type Listener ¶
type PeekConn ¶ added in v1.5.5
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.