Documentation ¶
Overview ¶
Package p2p provides Peer-to-Peer network functionality
Index ¶
Constants ¶
View Source
const ( TickerDuration = time.Second * 15 RequestTimeout = time.Second * 5 ConnectionTimeout = time.Second * 15 )
View Source
const ( KEY_PORT = "PORT" KEY_CONNECTION_ID = "CONNECTION_ID" KEY_STREAM_IGNORE = "STREAM_IGNORE" KEY_STREAM_MESSAGE = "STREAM_MESSAGE" )
View Source
const (
TAG_RELAY = "relay"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionMode ¶
type ConnectionMode string
const ( ConnectionModeRelay ConnectionMode = "relay" ConnectionModeP2P ConnectionMode = "p2p" )
type ConnectionState ¶
type ConnectionState int
const ( ConnectionStateDisconnected ConnectionState = iota ConnectionStateConnecting ConnectionStateConnected )
Directories ¶
Path | Synopsis |
---|---|
broker
|
|
client
Package brokerc provides functionality to create a Broker Client
|
Package brokerc provides functionality to create a Broker Client |
server
Package brokers provides functionality to create a Broker Server
|
Package brokers provides functionality to create a Broker Server |
Package p2pc extends udpc to provide P2P functionality
|
Package p2pc extends udpc to provide P2P functionality |
Package relay provides functionality to create a Relay Server
|
Package relay provides functionality to create a Relay Server |
Package p2ps extends udps to provide P2P functionality
|
Package p2ps extends udps to provide P2P functionality |
Click to show internal directories.
Click to hide internal directories.