00001
00002
00003
00004
00005
00006
00007 #import "NSObject.h"
00008
00009 @class MessageInvocation, NSString;
00010
00011 @interface _NSSocket : NSObject
00012 {
00013 struct __CFReadStream *_readStream;
00014 struct __CFWriteStream *_writeStream;
00015 NSString *_protocol;
00016 void *_stats;
00017 void *_request;
00018 unsigned int _numTimeoutSecs:16;
00019 unsigned int _openCompleted:1;
00020 unsigned int _canRead:1;
00021 unsigned int _canWrite:1;
00022 unsigned int _error:1;
00023 unsigned int _closed:1;
00024 double _lastUsedTime;
00025 int _dataContextIdentifier;
00026 MessageInvocation *_eventHandler;
00027 }
00028
00029 + (void)initialize;
00030 + (int)simulatedSocketSpeed;
00031 + (void)setSimulatedSocketSpeed:(int)fp8;
00032 + (void)resetStatistics;
00033 + (unsigned long long)outBytes;
00034 + (unsigned long long)inBytes;
00035 + (unsigned long long)outBytesPerSecond;
00036 + (unsigned long long)inBytesPerSecond;
00037 + (unsigned long long)totalBytesPerSecond;
00038 + (unsigned int)connects;
00039 + (unsigned int)writes;
00040 + (unsigned int)reads;
00041 + (void)showStatistics;
00042 - (id)securityProtocol;
00043 - (BOOL)setSecurityProtocol:(id)fp8 serverCertificateDigest:(id)fp12;
00044 - (id)serverCertificates;
00045 - (void)setDataContextIdentifier:(long)fp8;
00046 - (id)initWithTimeout:(int)fp8;
00047 - (id)init;
00048 - (int)timeout;
00049 - (void)setTimeout:(int)fp8;
00050 - (void)dealloc;
00051 - (void)abort;
00052 - (BOOL)isReadable;
00053 - (BOOL)isWritable;
00054 - (struct __CFReadStream *)copyReadStream;
00055 - (struct __CFWriteStream *)copyWriteStream;
00056 - (BOOL)isValid;
00057 - (BOOL)connectToHost:(id)fp8 withPort:(unsigned int)fp12 protocol:(id)fp16 serverCertificateDigest:(id)fp20;
00058 - (int)writeBytes:(const char *)fp8 length:(int)fp12;
00059 - (int)readBytes:(char *)fp8 length:(int)fp12;
00060 - (void)registerForEvents;
00061 - (void)setEventHandler:(id)fp8;
00062 - (id)remoteHostname;
00063 - (unsigned int)remotePortNumber;
00064 - (id)sourceIPAddress;
00065 - (int)fileDescriptor;
00066 - (double)lastUsedTime;
00067
00068 @end
00069