00001
00002
00003
00004
00005
00006
00007 #import "NSObject.h"
00008
00009 @class NSData, _NSSocket;
00010
00011 @interface Connection : NSObject
00012 {
00013 id <SASLSecurityLayer> _securityLayer;
00014 _NSSocket *_socket;
00015 char *_buffer;
00016 int _bufferRemainingBytes;
00017 unsigned int _bufferStart;
00018 unsigned int _bufferLength;
00019 unsigned int _desiredBufferLength;
00020 NSData *_logData;
00021 unsigned int _isFetching:1;
00022 unsigned int _allowFallbacks:1;
00023 }
00024
00025 + (void)initialize;
00026 + (void)logBytes:(const char *)fp8 length:(int)fp12;
00027 + (void)flushLog;
00028 + (id)logClasses;
00029 + (void)setLogClasses:(id)fp8;
00030 + (BOOL)logAllSocketActivity;
00031 + (void)setLogAllSocketActivity:(BOOL)fp8;
00032 + (id)logActivityOnPorts;
00033 + (void)setLogActivityOnPorts:(id)fp8;
00034 + (id)logActivityOnHosts;
00035 + (void)setLogActivityOnHosts:(id)fp8;
00036 + (BOOL)shouldTryFallbacksAfterError:(id)fp8;
00037 - (void)dealloc;
00038 - (BOOL)isForcedConnection;
00039 - (BOOL)isFetching;
00040 - (void)setIsFetching:(BOOL)fp8;
00041 - (BOOL)connectUsingSettings:(id)fp8;
00042 - (BOOL)connectUsingAccount:(id)fp8;
00043 - (BOOL)connectUsingFallbacksForAccount:(id)fp8;
00044 - (void)setAllowsFallbacks:(BOOL)fp8;
00045 - (BOOL)authenticateUsingAccount:(id)fp8;
00046 - (id)capabilities;
00047 - (id)authenticationMechanisms;
00048 - (BOOL)writeData:(id)fp8 dontLogBytesInRange:(struct _NSRange)fp12;
00049 - (BOOL)writeData:(id)fp8;
00050 - (void)setDesiredReadBufferLength:(unsigned int)fp8;
00051 - (BOOL)readLineIntoData:(id)fp8;
00052 - (BOOL)readBytesIntoData:(id)fp8 desiredLength:(unsigned int)fp12;
00053 - (BOOL)authenticateUsingAccount:(id)fp8 authenticator:(id)fp12;
00054 - (BOOL)startTLSForAccount:(id)fp8;
00055 - (BOOL)isValid;
00056 - (void)disconnect;
00057 - (void *)_socket;
00058 - (BOOL)hasBytesAvailable;
00059 - (double)lastUsedTime;
00060
00061 @end
00062