TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2016 |
SwiftSwift Version | 3.0 |
Maintained by Chris Anderson.
Easily scan a Wi-Fi network for devices
let scanner = LANScanner(delegate: self, continuous: false)
scanner?.startScan()
Be sure to implement the delegate LANScannerDelegate
var netInfo = LANScanner.getLocalAddress()
print(netInfo.ip)
print(netInfo.netmask)
/// Public
var delegate:LANScannerDelegate // Delegate for discovery callbacks
var continuous:Bool // When set this will restart the scan when completed
func startScan() // Begin a scan
func stopScan() // End a scan
static func getHostName(ipaddress: String) -> String? // Get the hostname from an IP address
static func getLocalAddress() -> NetInfo? // Get the local devices IP address and
/// Delegate
func LANScannerDiscovery(device: LANDevice)
func LANScannerFinished()
func LANScannerRestarted()
func LANScannerFailed(error: NSError)
Chris Anderson:
LANScanner is available under the MIT license. See the LICENSE file for more info.