Class: DiscoversServers
- Inherits:
-
Object
- Object
- DiscoversServers
- Defined in:
- lib/openplay/discovers_servers.rb
Class Method Summary collapse
Class Method Details
.find_servers ⇒ Object
3 4 5 6 7 8 |
# File 'lib/openplay/discovers_servers.rb', line 3 def self.find_servers servers = Findme.discover.select{|s| s.service == "_openplay._tcp"} # Only return IPv4 servers for now, there were issues with IPv6 # (unacceptable, but whatev) servers.select{|s| s.ipv4 == "IPv4"} end |