Documentation ¶
Index ¶
- Constants
- Variables
- type Addr
- type Conn
- type DeviceID
- type Host
- func (h *Host) AddDiscovery(provider discovery.Provider)
- func (h *Host) Addr() Addr
- func (h *Host) Allow(who friends.ID) bool
- func (h *Host) Connect(who friends.ID, urlstr string) error
- func (h *Host) LocalAddrs() (addrs []string)
- func (h *Host) Open(channelID uint32, transportName string) (n Listener, err error)
- func (h *Host) SetFriendList(fl friends.Source)
- type Listener
- type TransportService
Constants ¶
View Source
const MetaChannelID = uint32(0xFFFFFFFF)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func (*Host) AddDiscovery ¶
AddDiscovery starts the given discovery provider.
func (*Host) Allow ¶
Allow returns true if a host with the given id should be allowed to connect to this host--if "who" is in the friends list or equal to the local id.
func (*Host) LocalAddrs ¶
func (*Host) SetFriendList ¶
SetFriendList will make the host start using the new friend list. It will also update all running discovery providers with the new friend list.
type TransportService ¶
type TransportService struct {
// contains filtered or unexported fields
}
func (*TransportService) Dial ¶
func (ts *TransportService) Dial(raddr string, remoteKey crypto.PublicKey) error
func (*TransportService) RegisterListener ¶
func (ts *TransportService) RegisterListener(l *listener)
func (*TransportService) Run ¶
func (ts *TransportService) Run() error
func (*TransportService) Shutdown ¶
func (ts *TransportService) Shutdown()
Click to show internal directories.
Click to hide internal directories.