picofuse-objc

NXNetworkEvent.h
Go to the documentation of this file.
1 
5 #pragma once
7 
12 typedef enum {
26 
37 @interface NXNetworkEvent : NXObject {
38 @private
39  id _source;
40  NXNetworkEventType _type;
41  NXWirelessNetwork *_network;
42  NXDate *_date;
43  NXString *_host;
44  NXArray *_addresses;
45 }
46 
51 - (id)source;
52 
57 
62 
67 - (NXDate *)date;
68 
73 - (NXString *)host;
74 
79 - (NXArray *)addresses;
80 
81 @end
It's still joined, with -network's signal now.
A Wi-Fi network: one a scan found, or one named to join.
A scan found a network, which is -network.
NXString * host()
Returns the host name an NXNetworkResolver looked up, for NXNetworkEventResolved and NXNetworkEventUn...
It's left a network, or lost it.
NXDate * date()
Returns the time an NXNetworkTime got, in UTC, for NXNetworkEventTime, or nil.
It couldn't join, as the network wasn't found.
A scan's finished.
A date and time, to the nanosecond, with the offset of a time zone.
Definition: NXDate.h:44
NXNetworkEventType type()
Returns what happened.
It couldn't join, as the password's wrong.
What a network interface, an NXNetworkTime or an NXNetworkResolver sends its target: what happened...
-host couldn't be looked up, or isn't there
Something else went wrong.
NXArray * addresses()
Returns a copy of its addresses, as strings, for NXNetworkEventResolved, or an empty array for NXNetw...
-host was looked up: it's at -addresses
A string of UTF-8 text.
Definition: NXString.h:53
NXWirelessNetwork * network()
Returns the network it happened to, or nil, as when a scan's done.
An ordered list of objects, which can be changed.
Definition: NXArray.h:26
Defines NXWirelessNetwork, a Wi-Fi network, found by a scan or named.
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
id source()
Returns what sent it, the NXNetworkInterface, NXNetworkTime or NXNetworkResolver. ...
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
It's joined a network, which is -network.
An NXNetworkTime got the time, which is -date.
It's joining a network.
NXNetworkEventType
What happened to a network interface.