Closed nathanpaulyoung closed 4 years ago
There is a specific port and address specified, so it will discover anyone broadcasting on with that address and port
I skimmed the example and didn't see where those are specified. Are you saying that the address and port are configurable, or that there is a hardcoded port and/or address range that it checks? Additionally, does it require a particular response payload, or is it basically just looking for an ACK?
They are specified in the settings: https://github.com/schollz/peerdiscovery/blob/master/peerdiscovery.go#L25
In the example I used the defaults.
The payload is optional
1、只是限于局域网适用吗? 2、需要服务器来中转广播?
Google translating the above questions:
@zxbit2011 @nathanpaulyoung
Does this discover peers that are not also running this software, or do all peers need to be running this in some sort of "listening" mode?