blob: 2679490a90b574996325b94fe75342a35bcf8ce5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
{ Parsed from Foundation.framework NSConnection.h }
{$ifdef TYPES}
{$ifndef NSCONNECTION_PAS_T}
{$define NSCONNECTION_PAS_T}
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSCONNECTION_PAS_R}
{$define NSCONNECTION_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSCONNECTION_PAS_F}
{$define NSCONNECTION_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCONNECTION_PAS_S}
{$define NSCONNECTION_PAS_S}
{ External string constants }
var
NSConnectionReplyMode: NSString; cvar; external;
NSConnectionDidDieNotification: NSString; cvar; external;
NSFailedAuthenticationException: NSString; cvar; external;
NSConnectionDidInitializeNotification: NSString; cvar; external;
{$endif}
{$endif}
{$ifdef FORWARD}
NSConnectionDelegateProtocol = objcprotocol;
NSConnection = objcclass;
NSConnectionPointer = ^NSConnection;
NSConnectionPtr = NSConnectionPointer;
NSDistantObjectRequest = objcclass;
NSDistantObjectRequestPointer = ^NSDistantObjectRequest;
NSDistantObjectRequestPtr = NSDistantObjectRequestPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSCONNECTION_PAS_C}
{$define NSCONNECTION_PAS_C}
{ NSConnection }
NSConnection = objcclass external (NSObject)
private
_receivePort: id;
_sendPort: id;
_delegate: id;
busy: cint32;
localProxyCount: cint32;
waitCount: cint32;
delayedRL: id;
_statistics: id;
isDead: char;
_isValid: char;
wantsInvalid: char;
_anoninternstruct_NSConnection0: record
case byte of
0: (_anonbitfield_NSConnection0: char);
1: (data: bitpacked record
authGen: 0..1;
authCheck: 0..1;
encryptFlag: 0..1;
decryptFlag: 0..1;
doRequest: 0..1;
isQueueing: 0..1;
isMulti: 0..1;
invalidateRP: 0..1;
end;
);
end;
___1: id;
___2: id;
runLoops: id;
_requestModes: id;
_rootObject: id;
registerInfo: Pointer;
replMode: id;
classInfoImported: id;
releasedProxies: id;
reserved: Pointer;
public
function statistics: NSDictionary; message 'statistics';
class function allConnections: NSArray; message 'allConnections';
class function defaultConnection: NSConnection; message 'defaultConnection'; deprecated 'in Mac OS X 10.6 and later';
class function connectionWithRegisteredName_host(name: NSString; hostName: NSString): id; message 'connectionWithRegisteredName:host:';
class function connectionWithRegisteredName_host_usingNameServer(name: NSString; hostName: NSString; server: NSPortNameServer): id; message 'connectionWithRegisteredName:host:usingNameServer:';
class function rootProxyForConnectionWithRegisteredName_host(name: NSString; hostName: NSString): NSDistantObject; message 'rootProxyForConnectionWithRegisteredName:host:';
class function rootProxyForConnectionWithRegisteredName_host_usingNameServer(name: NSString; hostName: NSString; server: NSPortNameServer): NSDistantObject; message 'rootProxyForConnectionWithRegisteredName:host:usingNameServer:';
class function serviceConnectionWithName_rootObject_usingNameServer(name: NSString; root: id; server: NSPortNameServer): id; message 'serviceConnectionWithName:rootObject:usingNameServer:';
class function serviceConnectionWithName_rootObject(name: NSString; root: id): id; message 'serviceConnectionWithName:rootObject:';
procedure setRequestTimeout(ti: NSTimeInterval); message 'setRequestTimeout:';
function requestTimeout: NSTimeInterval; message 'requestTimeout';
procedure setReplyTimeout(ti: NSTimeInterval); message 'setReplyTimeout:';
function replyTimeout: NSTimeInterval; message 'replyTimeout';
procedure setRootObject(anObject: id); message 'setRootObject:';
function rootObject: id; message 'rootObject';
function rootProxy: NSDistantObject; message 'rootProxy';
procedure setDelegate(anObject: NSConnectionDelegateProtocol); message 'setDelegate:';
function delegate: NSConnectionDelegateProtocol; message 'delegate';
procedure setIndependentConversationQueueing(yorn: Boolean); message 'setIndependentConversationQueueing:';
function independentConversationQueueing: Boolean; message 'independentConversationQueueing';
function isValid: Boolean; message 'isValid';
procedure invalidate; message 'invalidate';
procedure addRequestMode(rmode: NSString); message 'addRequestMode:';
procedure removeRequestMode(rmode: NSString); message 'removeRequestMode:';
function requestModes: NSArray; message 'requestModes';
function registerName(name: NSString): Boolean; message 'registerName:';
function registerName_withNameServer(name: NSString; server: NSPortNameServer): Boolean; message 'registerName:withNameServer:';
class function connectionWithReceivePort_sendPort(receivePort_: NSPort; sendPort_: NSPort): id; message 'connectionWithReceivePort:sendPort:';
class function currentConversation: id; message 'currentConversation';
function initWithReceivePort_sendPort(receivePort_: NSPort; sendPort_: NSPort): id; message 'initWithReceivePort:sendPort:';
function sendPort: NSPort; message 'sendPort';
function receivePort: NSPort; message 'receivePort';
procedure enableMultipleThreads; message 'enableMultipleThreads';
function multipleThreadsEnabled: Boolean; message 'multipleThreadsEnabled';
procedure addRunLoop(runloop: NSRunLoop); message 'addRunLoop:';
procedure removeRunLoop(runloop: NSRunLoop); message 'removeRunLoop:';
procedure runInNewThread; message 'runInNewThread';
function remoteObjects: NSArray; message 'remoteObjects';
function localObjects: NSArray; message 'localObjects';
end;
{ NSDistantObjectRequest }
NSDistantObjectRequest = objcclass external (NSObject)
public
function invocation: NSInvocation; message 'invocation';
function connection: NSConnection; message 'connection';
function conversation: id; message 'conversation';
procedure replyWithException(exception: NSException); message 'replyWithException:';
end;
{$endif}
{$endif}
{$ifdef PROTOCOLS}
{$ifndef NSCONNECTION_PAS_P}
{$define NSCONNECTION_PAS_P}
{ NSConnectionDelegate Protocol }
NSConnectionDelegateProtocol = objcprotocol external name 'NSConnectionDelegate'
optional
function makeNewConnection_sender(conn: NSConnection; ancestor: NSConnection): Boolean; message 'makeNewConnection:sender:';
function connection_shouldMakeNewConnection(ancestor: NSConnection; conn: NSConnection): Boolean; message 'connection:shouldMakeNewConnection:';
function authenticationDataForComponents(components: NSArray): NSData; message 'authenticationDataForComponents:';
function authenticateComponents_withData(components: NSArray; signature: NSData): Boolean; message 'authenticateComponents:withData:';
function createConversationForConnection(conn: NSConnection): id; message 'createConversationForConnection:';
function connection_handleRequest(connection: NSConnection; doreq: NSDistantObjectRequest): Boolean; message 'connection:handleRequest:';
end;
{$endif}
{$endif}
|