Created
June 19, 2011 01:05
-
-
Save titanous/1033643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Generated by class-dump 3.3.3 (64 bit). | |
| * | |
| * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard. | |
| */ | |
| #pragma mark - | |
| /* | |
| * File: /System/Library/PrivateFrameworks/ApplePushService.framework/applepushserviced | |
| * UUID: 2C25B2C2-2786-E950-2055-95E4CB515E04 | |
| * Arch: Intel x86-64 (x86_64) | |
| * | |
| * Objective-C Garbage Collection: Unsupported | |
| */ | |
| @protocol APSConnectionServerDelegate <NSObject> | |
| - (void)connectionTopicsChanged:(id)arg1; | |
| - (void)connectionWasClosed:(id)arg1; | |
| - (BOOL)connectionDelegateHasIdentity:(id)arg1; | |
| - (void)connectionChangedCriticalReliability:(id)arg1; | |
| @end | |
| @protocol APSCourierDelegate <NSObject> | |
| - (void)courierHasNoConnections:(id)arg1; | |
| - (void)needClientIdentity; | |
| @end | |
| @protocol APSProvisionerDelegate <NSObject> | |
| - (void)gotClientIdentity; | |
| - (void)gotError; | |
| @end | |
| @protocol APSTCPStreamDelegate <NSObject> | |
| - (unsigned long long)tcpStream:(id)arg1 dataReceived:(id)arg2; | |
| - (void)tcpStreamEndEncountered:(id)arg1; | |
| - (void)tcpStream:(id)arg1 errorOccured:(id)arg2; | |
| @optional | |
| - (void)tcpStream:(id)arg1 hasDeterminedServerHostname:(id)arg2; | |
| - (void)tcpStreamHasConnected:(id)arg1; | |
| - (BOOL)tcpStreamHasSpaceAvailable:(id)arg1; | |
| @end | |
| @protocol NSObject | |
| - (BOOL)isEqual:(id)arg1; | |
| - (unsigned long long)hash; | |
| - (Class)superclass; | |
| - (Class)class; | |
| - (id)self; | |
| - (struct _NSZone *)zone; | |
| - (id)performSelector:(SEL)arg1; | |
| - (id)performSelector:(SEL)arg1 withObject:(id)arg2; | |
| - (id)performSelector:(SEL)arg1 withObject:(id)arg2 withObject:(id)arg3; | |
| - (BOOL)isProxy; | |
| - (BOOL)isKindOfClass:(Class)arg1; | |
| - (BOOL)isMemberOfClass:(Class)arg1; | |
| - (BOOL)conformsToProtocol:(id)arg1; | |
| - (BOOL)respondsToSelector:(SEL)arg1; | |
| - (id)retain; | |
| - (oneway void)release; | |
| - (id)autorelease; | |
| - (unsigned long long)retainCount; | |
| - (id)description; | |
| @end | |
| @protocol NSStreamDelegate <NSObject> | |
| @optional | |
| - (void)stream:(id)arg1 handleEvent:(unsigned long long)arg2; | |
| @end | |
| @interface APSDaemon : NSObject <APSCourierDelegate, APSProvisionerDelegate> | |
| { | |
| NSMutableDictionary *_domainsToCouriers; | |
| struct __CFRunLoopSource *_daemonMigSource; | |
| NSTimer *_inactivityTerminationTimer; | |
| APSCertificateProvisioner *_provisioner; | |
| NSTimer *_provisionerRetryTimer; | |
| unsigned long long _provisionerFailureCount; | |
| } | |
| + (void)setLaunchdLaunchSemaphoreEnabled:(BOOL)arg1; | |
| - (id)init; | |
| - (void)dealloc; | |
| - (void)_installSignalRunLoopSource; | |
| - (void)_startInactivityTerminationTimerIfNecessary; | |
| - (void)_clearInactivityTerminationTimer; | |
| - (void)_inactivityTerminationTimerFired:(id)arg1; | |
| - (void)_loadConnections; | |
| - (id)courierForDomain:(id)arg1; | |
| - (id)domainForEnvironment:(id)arg1; | |
| - (void)courierHasNoConnections:(id)arg1; | |
| - (void)needClientIdentity; | |
| - (void)gotClientIdentity; | |
| - (void)_provisionerRetryTimerFired:(id)arg1; | |
| - (void)gotError; | |
| - (BOOL)createConnectionServerForEnvironment:(id)arg1 userName:(id)arg2 connectionPortName:(id)arg3 connectionPort:(unsigned int)arg4 connectionServerPort:(unsigned int *)arg5; | |
| - (double)keepAliveIntervalForEnvironment:(id)arg1; | |
| @end | |
| @interface APSConnectionServer : NSObject | |
| { | |
| id <APSConnectionServerDelegate> _delegate; | |
| NSString *_environmentName; | |
| NSData *_publicToken; | |
| unsigned int _connectionServerPort; | |
| struct __CFRunLoopSource *_serverMigSource; | |
| NSString *_connectionPortName; | |
| unsigned int _connectionPort; | |
| struct __CFMachPort *_connectionCFPort; | |
| NSSet *_enabledTopics; | |
| NSSet *_ignoredTopics; | |
| NSMutableArray *_queuedTopics; | |
| NSMutableArray *_queuedUserInfoDatas; | |
| BOOL _queuedTokenUpdate; | |
| BOOL _enableCriticalReliability; | |
| NSString *_userName; | |
| } | |
| + (id)serverEnvironmentNames; | |
| + (id)serversWithEnvironmentName:(id)arg1 delegate:(id)arg2; | |
| - (id)initWithDelegate:(id)arg1 environmentName:(id)arg2 userName:(id)arg3 connectionPortName:(id)arg4 connectionPort:(unsigned int)arg5; | |
| - (void)dealloc; | |
| - (void)close; | |
| - (void)_connectionPortInvalidated; | |
| - (id)connectionPortName; | |
| - (unsigned int)connectionServerPort; | |
| - (id)userName; | |
| - (void)handleReceivedMessageTopic:(id)arg1 userInfo:(id)arg2; | |
| - (void)_handleMessageDequeued; | |
| - (void)notifyOfPublicTokenUpdate; | |
| @property(retain, nonatomic) NSSet *enabledTopics; // @synthesize enabledTopics=_enabledTopics; | |
| @property(retain, nonatomic) NSSet *ignoredTopics; // @synthesize ignoredTopics=_ignoredTopics; | |
| - (void)saveAndUpdateDelegate; | |
| - (BOOL)hasIdentity; | |
| @property(nonatomic) BOOL enableCriticalReliability; // @synthesize enableCriticalReliability=_enableCriticalReliability; | |
| - (void)_savePersistentConnectionTopics; | |
| @property(retain, nonatomic) NSData *publicToken; // @synthesize publicToken=_publicToken; | |
| @end | |
| @interface APSProtocolParser : NSObject | |
| { | |
| } | |
| + (id)copyConnectMessageWithToken:(id)arg1 useSerialProtocol:(BOOL)arg2; | |
| + (id)copyFilterMessageWithEnabledHashes:(id)arg1 ignoredHashes:(id)arg2 token:(id)arg3 useSerialProtocol:(BOOL)arg4; | |
| + (id)copyMessageAcknowledgeMessageWithResponse:(int)arg1 messageId:(id)arg2 useSerialProtocol:(BOOL)arg3; | |
| + (id)copyKeepAliveMessageWithCarrier:(id)arg1 software:(id)arg2 build:(id)arg3 hardware:(id)arg4 keepAlive:(id)arg5 useSerialProtocol:(BOOL)arg6; | |
| + (BOOL)parseMessage:(id)arg1 parameters:(id *)arg2 isInvalid:(char *)arg3 lengthParsed:(unsigned long long *)arg4; | |
| + (void)setObjectInParameters:(id)arg1 forType:(unsigned long long)arg2 command:(unsigned long long)arg3 data:(id)arg4; | |
| + (BOOL)_parseSerialMesage:(id)arg1 parameters:(id *)arg2 isInvalid:(char *)arg3 lengthParsed:(unsigned long long *)arg4; | |
| + (BOOL)_parseConnectedMessage:(id)arg1 parameters:(id *)arg2 isInvalid:(char *)arg3 lengthParsed:(unsigned long long *)arg4; | |
| + (BOOL)_parseMessageMessage:(id)arg1 parameters:(id *)arg2 isInvalid:(char *)arg3 lengthParsed:(unsigned long long *)arg4; | |
| + (BOOL)_parseKeepAliveResponseMessage:(id)arg1 parameters:(id *)arg2 isInvalid:(char *)arg3 lengthParsed:(unsigned long long *)arg4; | |
| @end | |
| @interface APSTCPStream : NSObject <NSStreamDelegate> | |
| { | |
| NSString *_domain; | |
| NSString *_host; | |
| unsigned long long _port; | |
| struct OpaqueSecIdentityRef *_clientIdentity; | |
| struct _DNSServiceRef_t *_serviceQuery; | |
| struct __CFFileDescriptor *_serviceQueryDescriptor; | |
| struct __CFRunLoopSource *_serviceQuerySource; | |
| NSInputStream *_readStream; | |
| NSOutputStream *_writeStream; | |
| id <APSTCPStreamDelegate> _delegate; | |
| BOOL _forceWWANInterface; | |
| BOOL _validatesTLSCertificateChain; | |
| BOOL _opened; | |
| NSMutableData *_receiveData; | |
| NSMutableData *_sendData; | |
| NSString *_serverHostname; | |
| NSString *_serverIPAddress; | |
| } | |
| + (void)setCachedServerCount:(unsigned int)arg1 forDomain:(id)arg2 ttl:(unsigned int)arg3; | |
| + (unsigned int)cachedServerCountForDomain:(id)arg1; | |
| - (id)initWithDomain:(id)arg1 host:(id)arg2 port:(unsigned long long)arg3 clientIdentity:(struct OpaqueSecIdentityRef *)arg4; | |
| - (void)dealloc; | |
| @property(nonatomic) BOOL forceWWANInterface; // @synthesize forceWWANInterface=_forceWWANInterface; | |
| - (void)open; | |
| - (void)_queryRecordReply:(const void *)arg1 length:(unsigned short)arg2 ttl:(unsigned int)arg3 errorCode:(int)arg4; | |
| - (void)_closeQuery; | |
| - (void)close; | |
| - (void)_connectToServerWithCount:(unsigned int)arg1; | |
| - (long long)write:(const char *)arg1 maxLength:(unsigned long long)arg2; | |
| - (void)writeDataInBackground:(id)arg1; | |
| - (void)stream:(id)arg1 handleEvent:(unsigned long long)arg2; | |
| - (BOOL)hasErrorStatus; | |
| - (id)_copyIPAddressStringForNativeSocket:(id)arg1; | |
| - (void)_hasBytesAvailable; | |
| - (void)_hasSpaceAvailable; | |
| @property(nonatomic) BOOL validatesTLSCertificateChain; // @synthesize validatesTLSCertificateChain=_validatesTLSCertificateChain; | |
| @property(readonly, nonatomic) NSString *serverIPAddress; // @synthesize serverIPAddress=_serverIPAddress; | |
| @property(readonly, nonatomic) NSString *serverHostname; // @synthesize serverHostname=_serverHostname; | |
| @property(nonatomic) id <APSTCPStreamDelegate> delegate; // @synthesize delegate=_delegate; | |
| @end | |
| @interface _APSServerCount : NSObject | |
| { | |
| double ttlBegin; | |
| double ttlEnd; | |
| unsigned int serverCount; | |
| } | |
| @property unsigned int serverCount; // @synthesize serverCount; | |
| @property double ttlEnd; // @synthesize ttlEnd; | |
| @property double ttlBegin; // @synthesize ttlBegin; | |
| @end | |
| @interface APSCourier : NSObject <APSTCPStreamDelegate, APSConnectionServerDelegate> | |
| { | |
| id <APSCourierDelegate> _delegate; | |
| NSString *_domain; | |
| BOOL _useSerialProtocol; | |
| NSMutableDictionary *_connections; | |
| NSString *_currentlyConnectingUser; | |
| NSMutableDictionary *_userConnectionState; | |
| NSMutableDictionary *_tokenToUserMapping; | |
| struct OpaqueSecIdentityRef *_clientIdentity; | |
| APSTCPStream *_tcpStream; | |
| BOOL _demoEnvironment; | |
| BOOL _enabled; | |
| BOOL _enableCriticalReliability; | |
| BOOL _forcedWWANInterface; | |
| unsigned long long _consecutiveConnectionFailureCount; | |
| double _lastClientRequestedKeepaliveTime; | |
| NSData *_lastReceivedPayloadHash; | |
| NSString *_lastReceivedTopic; | |
| double _lastReceivedTopicTime; | |
| BOOL _streamHasErroredSinceLastReceivedTopic; | |
| NSMutableDictionary *_connectionPortNamesToConnections; | |
| NSMutableDictionary *_hashesToEnabledTopics; | |
| NSMutableDictionary *_hashesToIgnoredTopics; | |
| NSTimer *_connectionEstablishTimer; | |
| NSTimer *_keepAliveTimer; | |
| NSTimer *_reconnectTimer; | |
| NSTimer *_sendKeepAliveTimer; | |
| } | |
| - (id)initWithDomain:(id)arg1 delegate:(id)arg2 isDemoEnvironment:(BOOL)arg3; | |
| - (void)dealloc; | |
| - (void)addConnection:(id)arg1; | |
| - (id)connectionForConnectionPortName:(id)arg1; | |
| - (void)removeConnectionForConnectionPortName:(id)arg1; | |
| - (void)connectionTopicsChanged:(id)arg1; | |
| - (void)connectionWasClosed:(id)arg1; | |
| - (BOOL)connectionDelegateHasIdentity:(id)arg1; | |
| - (void)connectionChangedCriticalReliability:(id)arg1; | |
| - (void)_recalculateCriticalReliability; | |
| - (void)_requestKeepAliveOrConnectionNow; | |
| - (BOOL)_recreateCacheDictionariesForConnectionList:(id)arg1 hashesToEnabledTopics:(id)arg2 hashesToIgnoredTopics:(id)arg3 connectionPortNamesToConnections:(id)arg4; | |
| - (void)_recreateCacheDictionaries; | |
| - (id)_copyHashForData:(id)arg1; | |
| - (id)_copyHashForTopic:(id)arg1; | |
| - (id)domain; | |
| - (id)publicTokenForUser:(id)arg1; | |
| - (void)setPublicToken:(id)arg1 forUser:(id)arg2; | |
| - (double)currentKeepAliveInterval; | |
| - (void)setEnabled:(BOOL)arg1; | |
| - (void)_adjustConnection; | |
| - (void)_connectStream; | |
| - (void)_disconnectStream; | |
| - (void)_refreshIdentity; | |
| - (struct OpaqueSecIdentityRef *)_getClientIdentity; | |
| - (void)_deleteClientIdentity; | |
| - (void)tcpStream:(id)arg1 hasDeterminedServerHostname:(id)arg2; | |
| - (void)tcpStreamHasConnected:(id)arg1; | |
| - (unsigned long long)tcpStream:(id)arg1 dataReceived:(id)arg2; | |
| - (void)tcpStreamEndEncountered:(id)arg1; | |
| - (void)tcpStream:(id)arg1 errorOccured:(id)arg2; | |
| - (void)_handleConnectionFailureForcingDelayedReconnect:(BOOL)arg1; | |
| - (void)_handleConnectedMessage:(id)arg1; | |
| - (void)_connectUser:(id)arg1; | |
| - (void)_sendFilterMessageForUser:(id)arg1; | |
| - (void)_handleMessageMessage:(id)arg1; | |
| - (id)parseJSON:(id)arg1; | |
| - (id)_copyParsedJSONPayload:(id)arg1 messageId:(id *)arg2 errorString:(id *)arg3; | |
| - (void)_performKeepAlive; | |
| - (void)_handleKeepAliveResponseMessage:(id)arg1; | |
| - (void)_startConnectionEstablishTimer; | |
| - (void)_clearConnectionEstablishTimer; | |
| - (void)_connectionEstablishTimerFired:(id)arg1; | |
| - (void)_startKeepAliveResponseTimer; | |
| - (void)_clearKeepAliveResponseTimer; | |
| - (void)_keepAliveResponseTimerFired:(id)arg1; | |
| - (void)_startSendKeepAliveTimer; | |
| - (void)_clearSendKeepAliveTimer; | |
| - (void)_sendKeepAliveTimerFired:(id)arg1; | |
| - (void)_startReconnectTimer; | |
| - (void)_clearReconnectTimer; | |
| - (void)_reconnectTimerFired:(id)arg1; | |
| @end | |
| @interface JSON : NSObject | |
| { | |
| unsigned long long options; | |
| NSError **error; | |
| unsigned long long depth; | |
| } | |
| - (id)initWithOptions:(unsigned long long)arg1 error:(id *)arg2; | |
| - (void)setErrorWithCode:(unsigned long long)arg1 description:(id)arg2; | |
| - (void)setErrorWithCode:(unsigned long long)arg1 string:(id)arg2; | |
| @end | |
| @interface JSONParser : JSON | |
| { | |
| char *c; | |
| char *start; | |
| char *end; | |
| } | |
| - (id)objectWithData:(id)arg1; | |
| - (unsigned long long)stringEncodingForJSONData:(id)arg1; | |
| - (id)newScanValue; | |
| - (id)newScanConstant; | |
| - (id)newScanArray; | |
| - (id)newScanDictionary; | |
| - (id)newScanString; | |
| - (BOOL)scanUnicodeChar:(unsigned short *)arg1; | |
| - (BOOL)scanHexQuad:(unsigned short *)arg1; | |
| - (id)newScanNumber; | |
| - (BOOL)scanIsAtEnd; | |
| - (void)setErrorWithCode:(unsigned long long)arg1 string:(id)arg2; | |
| @end | |
| @interface JSONWriter : JSON | |
| { | |
| } | |
| - (id)stringWithObject:(id)arg1; | |
| - (id)indent; | |
| - (BOOL)appendValue:(id)arg1 into:(id)arg2; | |
| - (BOOL)appendArray:(id)arg1 into:(id)arg2; | |
| - (BOOL)appendDictionary:(id)arg1 into:(id)arg2; | |
| - (BOOL)appendString:(id)arg1 into:(id)arg2; | |
| @end | |
| @interface APSCertificateProvisioner : NSObject | |
| { | |
| id <APSProvisionerDelegate> _delegate; | |
| NSMutableData *_pushCertReponseData; | |
| NSURLConnection *_pushCertRequest; | |
| struct OpaqueSecCertificateRef *_unsignedCert; | |
| } | |
| - (id)initWithDelegate:(id)arg1; | |
| - (struct OpaqueSecKeychainRef *)getKeychain; | |
| - (id)machineType; | |
| - (id)stringWithMachineSerialNumber; | |
| - (void)generateClientIdentity; | |
| - (id)errorForSecurityResultCode:(int)arg1; | |
| - (int)createUserKeyPair:(struct OpaqueSecKeyRef **)arg1 privKey:(struct OpaqueSecKeyRef **)arg2 keychain:(struct OpaqueSecKeychainRef *)arg3 algorithm:(unsigned int)arg4 size:(int)arg5 userName:(id)arg6 accessRef:(struct OpaqueSecAccessRef *)arg7; | |
| - (id)createCSRForPublicKey:(struct OpaqueSecKeyRef *)arg1 privateKey:(struct OpaqueSecKeyRef *)arg2 tpHandle:(long long)arg3 clHandle:(long long)arg4 subjectInfo:(id)arg5 error:(id *)arg6; | |
| - (id)csrForPublicKey:(struct OpaqueSecKeyRef *)arg1 privateKey:(struct OpaqueSecKeyRef *)arg2 error:(id *)arg3; | |
| - (id)commonNameForCertificate:(struct OpaqueSecCertificateRef *)arg1; | |
| - (void)renameCertKeys:(id)arg1 certificate:(struct OpaqueSecCertificateRef *)arg2; | |
| - (void)importCertificateData:(id)arg1; | |
| - (void)connection:(id)arg1 didFailWithError:(id)arg2; | |
| - (void)connection:(id)arg1 didReceiveAuthenticationChallenge:(id)arg2; | |
| - (void)connection:(id)arg1 didReceiveData:(id)arg2; | |
| - (void)connection:(id)arg1 didReceiveResponse:(id)arg2; | |
| - (id)connection:(id)arg1 willCacheResponse:(id)arg2; | |
| - (void)connectionDidFinishLoading:(id)arg1; | |
| @end | |
| @interface APSCertificateStorage : NSObject | |
| { | |
| } | |
| + (id)getUniqueHostIdentifier; | |
| + (id)commonNameForCertificate:(struct OpaqueSecCertificateRef *)arg1; | |
| + (struct OpaqueSecCertificateRef *)certificateForName:(id)arg1; | |
| + (struct OpaqueSecIdentityRef *)identityForName:(id)arg1; | |
| + (struct OpaqueSecCertificateRef *)certificateForIdentity:(struct OpaqueSecIdentityRef *)arg1; | |
| + (id)identityExpirationDate:(struct OpaqueSecIdentityRef *)arg1; | |
| + (struct OpaqueSecIdentityRef *)clientIdentity; | |
| + (void)deleteClientIdentity; | |
| + (void)storeCertificateName:(id)arg1; | |
| + (id)aes128cbcEncryptData:(id)arg1 withKey:(id)arg2; | |
| + (id)aes128cbcDecryptData:(id)arg1 withKey:(id)arg2; | |
| + (id)tokenForDomain:(id)arg1 userName:(id)arg2; | |
| + (void)setToken:(id)arg1 forDomain:(id)arg2 userName:(id)arg3; | |
| + (struct OpaqueSecKeychainRef *)unlockAndCopyKeychain; | |
| + (struct OpaqueSecKeychainRef *)getKeychain; | |
| + (void)deleteKeychain; | |
| @end | |
| @interface JSON (JSONParser) | |
| + (id)objectWithData:(id)arg1 options:(unsigned long long)arg2 error:(id *)arg3; | |
| @end | |
| @interface JSON (JSONWriter) | |
| + (id)dataWithObject:(id)arg1 options:(unsigned long long)arg2 error:(id *)arg3; | |
| + (id)dataWithObject:(id)arg1 options:(unsigned long long)arg2 encoding:(unsigned long long)arg3 error:(id *)arg4; | |
| + (id)stringWithObject:(id)arg1 options:(unsigned long long)arg2 error:(id *)arg3; | |
| @end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment