picofuse-objc

NXNetworkTime.h
Go to the documentation of this file.
1 
5 #pragma once
8 
38 @private
39  void *_ntp;
40  NXString *_host;
41  NXDuration _interval;
42  id _target;
43  SEL _selector;
44  void *_device;
45  id _dispatch;
46 }
47 
53 
64 
68 - (NXString *)host;
69 
74 
80 - (BOOL)setTarget:(id)target selector:(SEL)selector;
81 
85 - (BOOL)isAttached;
86 
87 @end
int64_t NXDuration
A length of time, in nanoseconds, which may be negative.
Definition: NXDuration.h:17
Foundation framework header.
NXString * host()
Returns its server's name or address, or nil for the default.
Something which produces events, such as a timer, while it's attached to the application with -[NXApp...
Definition: NXEventSource.h:17
The time from an NTP server, by its name or address, as an event source of the application, which sends a target an NXNetworkEventTime with each time it gets.
Definition: NXNetworkTime.h:37
Defines the NXEventSource protocol, for what produces events for an application.
NXDuration interval()
Returns how often it asks, once it's had a reply.
bool BOOL
A Boolean value.
Definition: runtime.h:60
BOOL isAttached()
Returns YES if it's attached, and so asks its server.
A string of UTF-8 text.
Definition: NXString.h:53
NXNetworkTime * defaultTime()
Returns the time from time.cloudflare.com's address, asked each hour.
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23