Skip to content

Peer to peer location and discovery tool written in go

License

Notifications You must be signed in to change notification settings

Brumawen/p2plocate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p2plocate

Package p2plocate is a peer to peer discovery tool that uses UDP broadcasts on the local network to discover services running on other computers within that network and to determine what functions those services support.

Installation

go get github.com/brumawen/p2plocate

Quick Start

s := p2plocate.P2PServer{
    PortNo: 20401,
    Functions: []string{"Function1", "Function2"},
}
s.OnDiscover(func() {
    fmt.Println("Devices discovered on ", s.LastDiscover.String())
    fmt.Println("-----------------------------------------------------------------------")
    fmt.Println(s.Devices)
    fmt.Println("")
})
s.Start()

About

Peer to peer location and discovery tool written in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages