-
Notifications
You must be signed in to change notification settings - Fork 12
/
iOSapi.CFNetwork.pas
1454 lines (1285 loc) · 52.8 KB
/
iOSapi.CFNetwork.pas
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework CFNetwork
//
unit iOSapi.CFNetwork;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.CocoaTypes,
iOSapi.Foundation;
const
kCFHostAddresses = 0;
kCFHostNames = 1;
kCFHostReachability = 2;
kCFStreamErrorHTTPAuthenticationTypeUnsupported = -1000;
kCFStreamErrorHTTPAuthenticationBadUserName = -1001;
kCFStreamErrorHTTPAuthenticationBadPassword = -1002;
kCFStreamErrorHTTPParseFailure = -1;
kCFStreamErrorHTTPRedirectionLoop = -2;
kCFStreamErrorHTTPBadURL = -3;
kCFNetDiagnosticNoErr = 0;
kCFNetDiagnosticErr = -66560;
kCFNetDiagnosticConnectionUp = -66559;
kCFNetDiagnosticConnectionIndeterminate = -66558;
kCFNetDiagnosticConnectionDown = -66557;
kCFNetServicesErrorUnknown = -72000;
kCFNetServicesErrorCollision = -72001;
kCFNetServicesErrorNotFound = -72002;
kCFNetServicesErrorInProgress = -72003;
kCFNetServicesErrorBadArgument = -72004;
kCFNetServicesErrorCancel = -72005;
kCFNetServicesErrorInvalid = -72006;
kCFNetServicesErrorTimeout = -72007;
kCFNetServiceMonitorTXT = 1;
kCFNetServiceFlagNoAutoRename = 1;
kCFNetServiceFlagMoreComing = 1;
kCFNetServiceFlagIsDomain = 2;
kCFNetServiceFlagIsDefault = 4;
kCFNetServiceFlagIsRegistrationDomain = 4;
kCFNetServiceFlagRemove = 8;
kCFHostErrorHostNotFound = 1;
kCFHostErrorUnknown = 2;
kCFSOCKSErrorUnknownClientVersion = 100;
kCFSOCKSErrorUnsupportedServerVersion = 101;
kCFSOCKS4ErrorRequestFailed = 110;
kCFSOCKS4ErrorIdentdFailed = 111;
kCFSOCKS4ErrorIdConflict = 112;
kCFSOCKS4ErrorUnknownStatusCode = 113;
kCFSOCKS5ErrorBadState = 120;
kCFSOCKS5ErrorBadResponseAddr = 121;
kCFSOCKS5ErrorBadCredentials = 122;
kCFSOCKS5ErrorUnsupportedNegotiationMethod = 123;
kCFSOCKS5ErrorNoAcceptableMethod = 124;
kCFFTPErrorUnexpectedStatusCode = 200;
kCFErrorHTTPAuthenticationTypeUnsupported = 300;
kCFErrorHTTPBadCredentials = 301;
kCFErrorHTTPConnectionLost = 302;
kCFErrorHTTPParseFailure = 303;
kCFErrorHTTPRedirectionLoopDetected = 304;
kCFErrorHTTPBadURL = 305;
kCFErrorHTTPProxyConnectionFailure = 306;
kCFErrorHTTPBadProxyCredentials = 307;
kCFErrorPACFileError = 308;
kCFErrorPACFileAuth = 309;
kCFErrorHTTPSProxyConnectionFailure = 310;
kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod = 311;
kCFURLErrorBackgroundSessionInUseByAnotherProcess = -996;
kCFURLErrorBackgroundSessionWasDisconnected = -997;
kCFURLErrorUnknown = -998;
kCFURLErrorCancelled = -999;
kCFURLErrorBadURL = -1000;
kCFURLErrorTimedOut = -1001;
kCFURLErrorUnsupportedURL = -1002;
kCFURLErrorCannotFindHost = -1003;
kCFURLErrorCannotConnectToHost = -1004;
kCFURLErrorNetworkConnectionLost = -1005;
kCFURLErrorDNSLookupFailed = -1006;
kCFURLErrorHTTPTooManyRedirects = -1007;
kCFURLErrorResourceUnavailable = -1008;
kCFURLErrorNotConnectedToInternet = -1009;
kCFURLErrorRedirectToNonExistentLocation = -1010;
kCFURLErrorBadServerResponse = -1011;
kCFURLErrorUserCancelledAuthentication = -1012;
kCFURLErrorUserAuthenticationRequired = -1013;
kCFURLErrorZeroByteResource = -1014;
kCFURLErrorCannotDecodeRawData = -1015;
kCFURLErrorCannotDecodeContentData = -1016;
kCFURLErrorCannotParseResponse = -1017;
kCFURLErrorInternationalRoamingOff = -1018;
kCFURLErrorCallIsActive = -1019;
kCFURLErrorDataNotAllowed = -1020;
kCFURLErrorRequestBodyStreamExhausted = -1021;
kCFURLErrorAppTransportSecurityRequiresSecureConnection = -1022;
kCFURLErrorFileDoesNotExist = -1100;
kCFURLErrorFileIsDirectory = -1101;
kCFURLErrorNoPermissionsToReadFile = -1102;
kCFURLErrorDataLengthExceedsMaximum = -1103;
kCFURLErrorSecureConnectionFailed = -1200;
kCFURLErrorServerCertificateHasBadDate = -1201;
kCFURLErrorServerCertificateUntrusted = -1202;
kCFURLErrorServerCertificateHasUnknownRoot = -1203;
kCFURLErrorServerCertificateNotYetValid = -1204;
kCFURLErrorClientCertificateRejected = -1205;
kCFURLErrorClientCertificateRequired = -1206;
kCFURLErrorCannotLoadFromNetwork = -2000;
kCFURLErrorCannotCreateFile = -3000;
kCFURLErrorCannotOpenFile = -3001;
kCFURLErrorCannotCloseFile = -3002;
kCFURLErrorCannotWriteToFile = -3003;
kCFURLErrorCannotRemoveFile = -3004;
kCFURLErrorCannotMoveFile = -3005;
kCFURLErrorDownloadDecodingFailedMidStream = -3006;
kCFURLErrorDownloadDecodingFailedToComplete = -3007;
kCFHTTPCookieCannotParseCookieFile = -4000;
kCFNetServiceErrorUnknown = -72000;
kCFNetServiceErrorCollision = -72001;
kCFNetServiceErrorNotFound = -72002;
kCFNetServiceErrorInProgress = -72003;
kCFNetServiceErrorBadArgument = -72004;
kCFNetServiceErrorCancel = -72005;
kCFNetServiceErrorInvalid = -72006;
kCFNetServiceErrorTimeout = -72007;
kCFNetServiceErrorDNSServiceFailure = -73000;
kCFStreamErrorSOCKSSubDomainNone = 0;
kCFStreamErrorSOCKSSubDomainVersionCode = 1;
kCFStreamErrorSOCKS4SubDomainResponse = 2;
kCFStreamErrorSOCKS5SubDomainUserPass = 3;
kCFStreamErrorSOCKS5SubDomainMethod = 4;
kCFStreamErrorSOCKS5SubDomainResponse = 5;
kCFStreamErrorSOCKS5BadResponseAddr = 1;
kCFStreamErrorSOCKS5BadState = 2;
kCFStreamErrorSOCKSUnknownClientVersion = 3;
kCFStreamErrorSOCKS4RequestFailed = 91;
kCFStreamErrorSOCKS4IdentdFailed = 92;
kCFStreamErrorSOCKS4IdConflict = 93;
kSOCKS5NoAcceptableMethod = 255;
type
// ===== Framework typedefs =====
{$M+}
CFStringRef = Pointer;
CFAllocatorRef = Pointer;
CFURLRef = Pointer;
CFReadStreamRef = Pointer;
CFIndex = LongInt;
CFWriteStreamRef = Pointer;
CFHostRef = Pointer;
CFHostInfoType = Integer;
CFAllocatorRetainCallBack = function(param1: Pointer): Pointer; cdecl;
CFAllocatorReleaseCallBack = procedure(param1: Pointer); cdecl;
CFAllocatorCopyDescriptionCallBack = function(param1: Pointer)
: CFStringRef; cdecl;
CFHostClientContext = record
version: CFIndex;
info: Pointer;
retain: CFAllocatorRetainCallBack;
release: CFAllocatorReleaseCallBack;
copyDescription: CFAllocatorCopyDescriptionCallBack;
end;
PCFHostClientContext = ^CFHostClientContext;
CFHostClientCallBack = procedure(param1: CFHostRef; param2: CFHostInfoType;
param3: Pointer; param4: Pointer); cdecl;
CFTypeID = LongWord;
CFDataRef = Pointer;
Boolean = Byte;
CFArrayRef = Pointer;
CFRunLoopRef = Pointer;
CFHTTPMessageRef = Pointer;
CFDictionaryRef = Pointer;
CFHTTPAuthenticationRef = Pointer;
CFStreamErrorHTTPAuthentication = Integer;
CFStreamErrorHTTP = Integer;
CFNetDiagnosticRef = Pointer;
CFNetDiagnosticStatusValues = Integer;
CFNetDiagnosticStatus = CFIndex;
CFNetServiceRef = Pointer;
CFNetServiceMonitorRef = Pointer;
CFNetServiceBrowserRef = Pointer;
CFNetServicesError = Integer;
CFNetServiceMonitorType = Integer;
CFOptionFlags = LongWord;
CFNetServiceRegisterFlags = CFOptionFlags;
CFNetServiceBrowserFlags = CFOptionFlags;
CFNetServiceClientContext = record
version: CFIndex;
info: Pointer;
retain: CFAllocatorRetainCallBack;
release: CFAllocatorReleaseCallBack;
copyDescription: CFAllocatorCopyDescriptionCallBack;
end;
PCFNetServiceClientContext = ^CFNetServiceClientContext;
CFNetServiceClientCallBack = procedure(param1: CFNetServiceRef;
param2: Pointer; param3: Pointer); cdecl;
CFNetServiceMonitorClientCallBack = procedure(param1: CFNetServiceMonitorRef;
param2: CFNetServiceRef; param3: CFNetServiceMonitorType; param4: CFDataRef;
param5: Pointer; param6: Pointer); cdecl;
CFTypeRef = Pointer;
CFNetServiceBrowserClientCallBack = procedure(param1: CFNetServiceBrowserRef;
param2: CFOptionFlags; param3: CFTypeRef; param4: Pointer;
param5: Pointer); cdecl;
CFTimeInterval = Double;
CFNetworkErrors = Integer;
CFErrorRef = Pointer;
CFProxyAutoConfigurationResultCallback = procedure(param1: Pointer;
param2: CFArrayRef; param3: CFErrorRef); cdecl;
CFRunLoopSourceRef = Pointer;
// ===== Exported string consts =====
function kCFStreamErrorDomainFTP: Pointer;
function kCFStreamPropertyFTPUserName: Pointer;
function kCFStreamPropertyFTPPassword: Pointer;
function kCFStreamPropertyFTPUsePassiveMode: Pointer;
function kCFStreamPropertyFTPResourceSize: Pointer;
function kCFStreamPropertyFTPFetchResourceInfo: Pointer;
function kCFStreamPropertyFTPFileTransferOffset: Pointer;
function kCFStreamPropertyFTPAttemptPersistentConnection: Pointer;
function kCFStreamPropertyFTPProxy: Pointer;
function kCFStreamPropertyFTPProxyHost: Pointer;
function kCFStreamPropertyFTPProxyPort: Pointer;
function kCFStreamPropertyFTPProxyUser: Pointer;
function kCFStreamPropertyFTPProxyPassword: Pointer;
function kCFFTPResourceMode: Pointer;
function kCFFTPResourceName: Pointer;
function kCFFTPResourceOwner: Pointer;
function kCFFTPResourceGroup: Pointer;
function kCFFTPResourceLink: Pointer;
function kCFFTPResourceSize: Pointer;
function kCFFTPResourceType: Pointer;
function kCFFTPResourceModDate: Pointer;
function kCFStreamErrorDomainNetDB: Pointer;
function kCFStreamErrorDomainSystemConfiguration: Pointer;
function kCFHTTPVersion1_0: Pointer;
function kCFHTTPVersion1_1: Pointer;
function kCFHTTPVersion2_0: Pointer;
function kCFHTTPAuthenticationSchemeBasic: Pointer;
function kCFHTTPAuthenticationSchemeDigest: Pointer;
function kCFHTTPAuthenticationSchemeNTLM: Pointer;
function kCFHTTPAuthenticationSchemeKerberos: Pointer;
function kCFHTTPAuthenticationSchemeNegotiate: Pointer;
function kCFHTTPAuthenticationSchemeNegotiate2: Pointer;
function kCFHTTPAuthenticationSchemeXMobileMeAuthToken: Pointer;
function kCFHTTPAuthenticationSchemeOAuth1: Pointer;
function kCFHTTPAuthenticationUsername: Pointer;
function kCFHTTPAuthenticationPassword: Pointer;
function kCFHTTPAuthenticationAccountDomain: Pointer;
function kCFStreamErrorDomainHTTP: Pointer;
function kCFStreamPropertyHTTPResponseHeader: Pointer;
function kCFStreamPropertyHTTPFinalURL: Pointer;
function kCFStreamPropertyHTTPFinalRequest: Pointer;
function kCFStreamPropertyHTTPProxy: Pointer;
function kCFStreamPropertyHTTPProxyHost: Pointer;
function kCFStreamPropertyHTTPProxyPort: Pointer;
function kCFStreamPropertyHTTPSProxyHost: Pointer;
function kCFStreamPropertyHTTPSProxyPort: Pointer;
function kCFStreamPropertyHTTPShouldAutoredirect: Pointer;
function kCFStreamPropertyHTTPAttemptPersistentConnection: Pointer;
function kCFStreamPropertyHTTPRequestBytesWrittenCount: Pointer;
function kCFStreamErrorDomainMach: Pointer;
function kCFStreamErrorDomainNetServices: Pointer;
function kCFErrorDomainCFNetwork: Pointer;
function kCFErrorDomainWinSock: Pointer;
function kCFURLErrorFailingURLErrorKey: Pointer;
function kCFURLErrorFailingURLStringErrorKey: Pointer;
function kCFGetAddrInfoFailureKey: Pointer;
function kCFSOCKSStatusCodeKey: Pointer;
function kCFSOCKSVersionKey: Pointer;
function kCFSOCKSNegotiationMethodKey: Pointer;
function kCFDNSServiceFailureKey: Pointer;
function kCFFTPStatusCodeKey: Pointer;
function kCFStreamPropertySSLContext: Pointer;
function kCFStreamPropertySSLPeerTrust: Pointer;
function kCFStreamSSLValidatesCertificateChain: Pointer;
function kCFStreamPropertySSLSettings: Pointer;
function kCFStreamSSLLevel: Pointer;
function kCFStreamSSLPeerName: Pointer;
function kCFStreamSSLCertificates: Pointer;
function kCFStreamSSLIsServer: Pointer;
function kCFStreamNetworkServiceType: Pointer;
function kCFStreamNetworkServiceTypeVideo: Pointer;
function kCFStreamNetworkServiceTypeVoice: Pointer;
function kCFStreamNetworkServiceTypeBackground: Pointer;
function kCFStreamNetworkServiceTypeVoIP: Pointer;
function kCFStreamPropertyNoCellular: Pointer;
function kCFStreamPropertyConnectionIsCellular: Pointer;
function kCFStreamErrorDomainWinSock: Pointer;
function kCFStreamErrorDomainSOCKS: Pointer;
function kCFStreamPropertySOCKSProxy: Pointer;
function kCFStreamPropertySOCKSProxyHost: Pointer;
function kCFStreamPropertySOCKSProxyPort: Pointer;
function kCFStreamPropertySOCKSVersion: Pointer;
function kCFStreamSocketSOCKSVersion4: Pointer;
function kCFStreamSocketSOCKSVersion5: Pointer;
function kCFStreamPropertySOCKSUser: Pointer;
function kCFStreamPropertySOCKSPassword: Pointer;
function kCFStreamPropertyProxyLocalBypass: Pointer;
function kCFStreamErrorDomainSSL: Pointer;
function kCFStreamPropertySocketSecurityLevel: Pointer;
function kCFStreamSocketSecurityLevelNone: Pointer;
function kCFStreamSocketSecurityLevelSSLv2: Pointer;
function kCFStreamSocketSecurityLevelSSLv3: Pointer;
function kCFStreamSocketSecurityLevelTLSv1: Pointer;
function kCFStreamSocketSecurityLevelNegotiatedSSL: Pointer;
function kCFStreamPropertyShouldCloseNativeSocket: Pointer;
function kCFStreamPropertySocketRemoteHost: Pointer;
function kCFStreamPropertySocketRemoteNetService: Pointer;
function kCFStreamPropertySocketExtendedBackgroundIdleMode: Pointer;
function kCFStreamPropertySSLPeerCertificates: Pointer;
function kCFStreamSSLAllowsExpiredCertificates: Pointer;
function kCFStreamSSLAllowsExpiredRoots: Pointer;
function kCFStreamSSLAllowsAnyRoot: Pointer;
function kCFProxyTypeKey: Pointer;
function kCFProxyHostNameKey: Pointer;
function kCFProxyPortNumberKey: Pointer;
function kCFProxyAutoConfigurationURLKey: Pointer;
function kCFProxyAutoConfigurationJavaScriptKey: Pointer;
function kCFProxyUsernameKey: Pointer;
function kCFProxyPasswordKey: Pointer;
function kCFProxyTypeNone: Pointer;
function kCFProxyTypeHTTP: Pointer;
function kCFProxyTypeHTTPS: Pointer;
function kCFProxyTypeSOCKS: Pointer;
function kCFProxyTypeFTP: Pointer;
function kCFProxyTypeAutoConfigurationURL: Pointer;
function kCFProxyTypeAutoConfigurationJavaScript: Pointer;
function kCFProxyAutoConfigurationHTTPResponseKey: Pointer;
function kCFNetworkProxiesExceptionsList: Pointer;
function kCFNetworkProxiesExcludeSimpleHostnames: Pointer;
function kCFNetworkProxiesFTPEnable: Pointer;
function kCFNetworkProxiesFTPPassive: Pointer;
function kCFNetworkProxiesFTPPort: Pointer;
function kCFNetworkProxiesFTPProxy: Pointer;
function kCFNetworkProxiesGopherEnable: Pointer;
function kCFNetworkProxiesGopherPort: Pointer;
function kCFNetworkProxiesGopherProxy: Pointer;
function kCFNetworkProxiesHTTPEnable: Pointer;
function kCFNetworkProxiesHTTPPort: Pointer;
function kCFNetworkProxiesHTTPProxy: Pointer;
function kCFNetworkProxiesHTTPSEnable: Pointer;
function kCFNetworkProxiesHTTPSPort: Pointer;
function kCFNetworkProxiesHTTPSProxy: Pointer;
function kCFNetworkProxiesRTSPEnable: Pointer;
function kCFNetworkProxiesRTSPPort: Pointer;
function kCFNetworkProxiesRTSPProxy: Pointer;
function kCFNetworkProxiesSOCKSEnable: Pointer;
function kCFNetworkProxiesSOCKSPort: Pointer;
function kCFNetworkProxiesSOCKSProxy: Pointer;
function kCFNetworkProxiesProxyAutoConfigEnable: Pointer;
function kCFNetworkProxiesProxyAutoConfigURLString: Pointer;
function kCFNetworkProxiesProxyAutoConfigJavaScript: Pointer;
function kCFNetworkProxiesProxyAutoDiscoveryEnable: Pointer;
// ===== External functions =====
const
libCFNetwork = '/System/Library/Frameworks/CFNetwork.framework/CFNetwork';
function CFReadStreamCreateWithFTPURL(alloc: CFAllocatorRef; ftpURL: CFURLRef)
: CFReadStreamRef; cdecl;
external libCFNetwork name _PU + 'CFReadStreamCreateWithFTPURL';
function CFFTPCreateParsedResourceListing(alloc: CFAllocatorRef; buffer: PByte;
bufferLength: CFIndex; parsed: Pointer): CFIndex; cdecl;
external libCFNetwork name _PU + 'CFFTPCreateParsedResourceListing';
function CFWriteStreamCreateWithFTPURL(alloc: CFAllocatorRef; ftpURL: CFURLRef)
: CFWriteStreamRef; cdecl;
external libCFNetwork name _PU + 'CFWriteStreamCreateWithFTPURL';
function CFHostGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFHostGetTypeID';
function CFHostCreateWithName(allocator: CFAllocatorRef; hostname: CFStringRef)
: CFHostRef; cdecl; external libCFNetwork name _PU + 'CFHostCreateWithName';
function CFHostCreateWithAddress(allocator: CFAllocatorRef; addr: CFDataRef)
: CFHostRef; cdecl; external libCFNetwork name _PU +
'CFHostCreateWithAddress';
function CFHostCreateCopy(alloc: CFAllocatorRef; host: CFHostRef): CFHostRef;
cdecl; external libCFNetwork name _PU + 'CFHostCreateCopy';
function CFHostStartInfoResolution(theHost: CFHostRef; info: CFHostInfoType;
error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHostStartInfoResolution';
function CFHostGetAddressing(theHost: CFHostRef; hasBeenResolved: PByte)
: CFArrayRef; cdecl; external libCFNetwork name _PU + 'CFHostGetAddressing';
function CFHostGetNames(theHost: CFHostRef; hasBeenResolved: PByte): CFArrayRef;
cdecl; external libCFNetwork name _PU + 'CFHostGetNames';
function CFHostGetReachability(theHost: CFHostRef; hasBeenResolved: PByte)
: CFDataRef; cdecl; external libCFNetwork name _PU + 'CFHostGetReachability';
procedure CFHostCancelInfoResolution(theHost: CFHostRef; info: CFHostInfoType);
cdecl; external libCFNetwork name _PU + 'CFHostCancelInfoResolution';
function CFHostSetClient(theHost: CFHostRef; clientCB: CFHostClientCallBack;
clientContext: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHostSetClient';
procedure CFHostScheduleWithRunLoop(theHost: CFHostRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFHostScheduleWithRunLoop';
procedure CFHostUnscheduleFromRunLoop(theHost: CFHostRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFHostUnscheduleFromRunLoop';
function CFHTTPMessageGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageGetTypeID';
function CFHTTPMessageCreateRequest(alloc: CFAllocatorRef;
requestMethod: CFStringRef; url: CFURLRef; httpVersion: CFStringRef)
: CFHTTPMessageRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCreateRequest';
function CFHTTPMessageCreateResponse(alloc: CFAllocatorRef; statusCode: CFIndex;
statusDescription: CFStringRef; httpVersion: CFStringRef): CFHTTPMessageRef;
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageCreateResponse';
function CFHTTPMessageCreateEmpty(alloc: CFAllocatorRef; isRequest: Boolean)
: CFHTTPMessageRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCreateEmpty';
function CFHTTPMessageCreateCopy(alloc: CFAllocatorRef;
message: CFHTTPMessageRef): CFHTTPMessageRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCreateCopy';
function CFHTTPMessageIsRequest(message: CFHTTPMessageRef): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageIsRequest';
function CFHTTPMessageCopyVersion(message: CFHTTPMessageRef): CFStringRef;
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageCopyVersion';
function CFHTTPMessageCopyBody(message: CFHTTPMessageRef): CFDataRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCopyBody';
procedure CFHTTPMessageSetBody(message: CFHTTPMessageRef; bodyData: CFDataRef);
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageSetBody';
function CFHTTPMessageCopyHeaderFieldValue(message: CFHTTPMessageRef;
headerField: CFStringRef): CFStringRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCopyHeaderFieldValue';
function CFHTTPMessageCopyAllHeaderFields(message: CFHTTPMessageRef)
: CFDictionaryRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageCopyAllHeaderFields';
procedure CFHTTPMessageSetHeaderFieldValue(message: CFHTTPMessageRef;
headerField: CFStringRef; value: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageSetHeaderFieldValue';
function CFHTTPMessageAppendBytes(message: CFHTTPMessageRef; newBytes: PByte;
numBytes: CFIndex): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageAppendBytes';
function CFHTTPMessageIsHeaderComplete(message: CFHTTPMessageRef): Boolean;
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageIsHeaderComplete';
function CFHTTPMessageCopySerializedMessage(message: CFHTTPMessageRef)
: CFDataRef; cdecl; external libCFNetwork name _PU +
'CFHTTPMessageCopySerializedMessage';
function CFHTTPMessageCopyRequestURL(request: CFHTTPMessageRef): CFURLRef;
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageCopyRequestURL';
function CFHTTPMessageCopyRequestMethod(request: CFHTTPMessageRef): CFStringRef;
cdecl; external libCFNetwork name _PU + 'CFHTTPMessageCopyRequestMethod';
function CFHTTPMessageAddAuthentication(request: CFHTTPMessageRef;
authenticationFailureResponse: CFHTTPMessageRef; username: CFStringRef;
password: CFStringRef; authenticationScheme: CFStringRef; forProxy: Boolean)
: Boolean; cdecl; external libCFNetwork name _PU +
'CFHTTPMessageAddAuthentication';
function CFHTTPMessageGetResponseStatusCode(response: CFHTTPMessageRef)
: CFIndex; cdecl; external libCFNetwork name _PU +
'CFHTTPMessageGetResponseStatusCode';
function CFHTTPMessageCopyResponseStatusLine(response: CFHTTPMessageRef)
: CFStringRef; cdecl; external libCFNetwork name _PU +
'CFHTTPMessageCopyResponseStatusLine';
function CFHTTPAuthenticationGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFHTTPAuthenticationGetTypeID';
function CFHTTPAuthenticationCreateFromResponse(alloc: CFAllocatorRef;
response: CFHTTPMessageRef): CFHTTPAuthenticationRef; cdecl;
external libCFNetwork name _PU + 'CFHTTPAuthenticationCreateFromResponse';
function CFHTTPAuthenticationIsValid(auth: CFHTTPAuthenticationRef;
error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPAuthenticationIsValid';
function CFHTTPAuthenticationAppliesToRequest(auth: CFHTTPAuthenticationRef;
request: CFHTTPMessageRef): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPAuthenticationAppliesToRequest';
function CFHTTPAuthenticationRequiresOrderedRequests
(auth: CFHTTPAuthenticationRef): Boolean; cdecl;
external libCFNetwork name _PU +
'CFHTTPAuthenticationRequiresOrderedRequests';
function CFHTTPMessageApplyCredentials(request: CFHTTPMessageRef;
auth: CFHTTPAuthenticationRef; username: CFStringRef; password: CFStringRef;
error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPMessageApplyCredentials';
function CFHTTPMessageApplyCredentialDictionary(request: CFHTTPMessageRef;
auth: CFHTTPAuthenticationRef; dict: CFDictionaryRef; error: Pointer)
: Boolean; cdecl; external libCFNetwork name _PU +
'CFHTTPMessageApplyCredentialDictionary';
function CFHTTPAuthenticationCopyRealm(auth: CFHTTPAuthenticationRef)
: CFStringRef; cdecl; external libCFNetwork name _PU +
'CFHTTPAuthenticationCopyRealm';
function CFHTTPAuthenticationCopyDomains(auth: CFHTTPAuthenticationRef)
: CFArrayRef; cdecl; external libCFNetwork name _PU +
'CFHTTPAuthenticationCopyDomains';
function CFHTTPAuthenticationCopyMethod(auth: CFHTTPAuthenticationRef)
: CFStringRef; cdecl; external libCFNetwork name _PU +
'CFHTTPAuthenticationCopyMethod';
function CFHTTPAuthenticationRequiresUserNameAndPassword
(auth: CFHTTPAuthenticationRef): Boolean; cdecl;
external libCFNetwork name _PU +
'CFHTTPAuthenticationRequiresUserNameAndPassword';
function CFHTTPAuthenticationRequiresAccountDomain
(auth: CFHTTPAuthenticationRef): Boolean; cdecl;
external libCFNetwork name _PU + 'CFHTTPAuthenticationRequiresAccountDomain';
function CFReadStreamCreateForHTTPRequest(alloc: CFAllocatorRef;
request: CFHTTPMessageRef): CFReadStreamRef; cdecl;
external libCFNetwork name _PU + 'CFReadStreamCreateForHTTPRequest';
function CFReadStreamCreateForStreamedHTTPRequest(alloc: CFAllocatorRef;
requestHeaders: CFHTTPMessageRef; requestBody: CFReadStreamRef)
: CFReadStreamRef; cdecl;
external libCFNetwork name _PU + 'CFReadStreamCreateForStreamedHTTPRequest';
procedure CFHTTPReadStreamSetRedirectsAutomatically(httpStream: CFReadStreamRef;
shouldAutoRedirect: Boolean); cdecl;
external libCFNetwork name _PU + 'CFHTTPReadStreamSetRedirectsAutomatically';
function CFNetDiagnosticCreateWithStreams(alloc: CFAllocatorRef;
readStream: CFReadStreamRef; writeStream: CFWriteStreamRef)
: CFNetDiagnosticRef; cdecl;
external libCFNetwork name _PU + 'CFNetDiagnosticCreateWithStreams';
function CFNetDiagnosticCreateWithURL(alloc: CFAllocatorRef; url: CFURLRef)
: CFNetDiagnosticRef; cdecl;
external libCFNetwork name _PU + 'CFNetDiagnosticCreateWithURL';
procedure CFNetDiagnosticSetName(details: CFNetDiagnosticRef;
name: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetDiagnosticSetName';
function CFNetDiagnosticDiagnoseProblemInteractively
(details: CFNetDiagnosticRef): CFNetDiagnosticStatus; cdecl;
external libCFNetwork name _PU +
'CFNetDiagnosticDiagnoseProblemInteractively';
function CFNetDiagnosticCopyNetworkStatusPassively(details: CFNetDiagnosticRef;
description: Pointer): CFNetDiagnosticStatus; cdecl;
external libCFNetwork name _PU + 'CFNetDiagnosticCopyNetworkStatusPassively';
function CFNetServiceGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetTypeID';
function CFNetServiceMonitorGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorGetTypeID';
function CFNetServiceBrowserGetTypeID: CFTypeID; cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserGetTypeID';
function CFNetServiceCreate(alloc: CFAllocatorRef; domain: CFStringRef;
serviceType: CFStringRef; name: CFStringRef; port: Int32): CFNetServiceRef;
cdecl; external libCFNetwork name _PU + 'CFNetServiceCreate';
function CFNetServiceCreateCopy(alloc: CFAllocatorRef; service: CFNetServiceRef)
: CFNetServiceRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceCreateCopy';
function CFNetServiceGetDomain(theService: CFNetServiceRef): CFStringRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetDomain';
function CFNetServiceGetType(theService: CFNetServiceRef): CFStringRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetType';
function CFNetServiceGetName(theService: CFNetServiceRef): CFStringRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetName';
function CFNetServiceRegisterWithOptions(theService: CFNetServiceRef;
options: CFOptionFlags; error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceRegisterWithOptions';
function CFNetServiceResolveWithTimeout(theService: CFNetServiceRef;
timeout: CFTimeInterval; error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceResolveWithTimeout';
procedure CFNetServiceCancel(theService: CFNetServiceRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceCancel';
function CFNetServiceGetTargetHost(theService: CFNetServiceRef): CFStringRef;
cdecl; external libCFNetwork name _PU + 'CFNetServiceGetTargetHost';
function CFNetServiceGetPortNumber(theService: CFNetServiceRef): Int32; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetPortNumber';
function CFNetServiceGetAddressing(theService: CFNetServiceRef): CFArrayRef;
cdecl; external libCFNetwork name _PU + 'CFNetServiceGetAddressing';
function CFNetServiceGetTXTData(theService: CFNetServiceRef): CFDataRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceGetTXTData';
function CFNetServiceSetTXTData(theService: CFNetServiceRef;
txtRecord: CFDataRef): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceSetTXTData';
function CFNetServiceCreateDictionaryWithTXTData(alloc: CFAllocatorRef;
txtRecord: CFDataRef): CFDictionaryRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceCreateDictionaryWithTXTData';
function CFNetServiceCreateTXTDataWithDictionary(alloc: CFAllocatorRef;
keyValuePairs: CFDictionaryRef): CFDataRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceCreateTXTDataWithDictionary';
function CFNetServiceSetClient(theService: CFNetServiceRef;
clientCB: CFNetServiceClientCallBack; clientContext: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceSetClient';
procedure CFNetServiceScheduleWithRunLoop(theService: CFNetServiceRef;
runLoop: CFRunLoopRef; runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceScheduleWithRunLoop';
procedure CFNetServiceUnscheduleFromRunLoop(theService: CFNetServiceRef;
runLoop: CFRunLoopRef; runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceUnscheduleFromRunLoop';
function CFNetServiceMonitorCreate(alloc: CFAllocatorRef;
theService: CFNetServiceRef; clientCB: CFNetServiceMonitorClientCallBack;
clientContext: Pointer): CFNetServiceMonitorRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorCreate';
procedure CFNetServiceMonitorInvalidate(monitor: CFNetServiceMonitorRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorInvalidate';
function CFNetServiceMonitorStart(monitor: CFNetServiceMonitorRef;
recordType: CFNetServiceMonitorType; error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorStart';
procedure CFNetServiceMonitorStop(monitor: CFNetServiceMonitorRef;
error: Pointer); cdecl; external libCFNetwork name _PU +
'CFNetServiceMonitorStop';
procedure CFNetServiceMonitorScheduleWithRunLoop
(monitor: CFNetServiceMonitorRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorScheduleWithRunLoop';
procedure CFNetServiceMonitorUnscheduleFromRunLoop
(monitor: CFNetServiceMonitorRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceMonitorUnscheduleFromRunLoop';
function CFNetServiceBrowserCreate(alloc: CFAllocatorRef;
clientCB: CFNetServiceBrowserClientCallBack; clientContext: Pointer)
: CFNetServiceBrowserRef; cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserCreate';
procedure CFNetServiceBrowserInvalidate(browser: CFNetServiceBrowserRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserInvalidate';
function CFNetServiceBrowserSearchForDomains(browser: CFNetServiceBrowserRef;
registrationDomains: Boolean; error: Pointer): Boolean; cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserSearchForDomains';
function CFNetServiceBrowserSearchForServices(browser: CFNetServiceBrowserRef;
domain: CFStringRef; serviceType: CFStringRef; error: Pointer): Boolean;
cdecl; external libCFNetwork name _PU +
'CFNetServiceBrowserSearchForServices';
procedure CFNetServiceBrowserStopSearch(browser: CFNetServiceBrowserRef;
error: Pointer); cdecl; external libCFNetwork name _PU +
'CFNetServiceBrowserStopSearch';
procedure CFNetServiceBrowserScheduleWithRunLoop
(browser: CFNetServiceBrowserRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserScheduleWithRunLoop';
procedure CFNetServiceBrowserUnscheduleFromRunLoop
(browser: CFNetServiceBrowserRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceBrowserUnscheduleFromRunLoop';
function CFNetServiceRegister(theService: CFNetServiceRef; error: Pointer)
: Boolean; cdecl; external libCFNetwork name _PU + 'CFNetServiceRegister';
function CFNetServiceResolve(theService: CFNetServiceRef; error: Pointer)
: Boolean; cdecl; external libCFNetwork name _PU + 'CFNetServiceResolve';
function CFNetServiceGetProtocolSpecificInformation(theService: CFNetServiceRef)
: CFStringRef; cdecl; external libCFNetwork name _PU +
'CFNetServiceGetProtocolSpecificInformation';
procedure CFNetServiceSetProtocolSpecificInformation
(theService: CFNetServiceRef; theInfo: CFStringRef); cdecl;
external libCFNetwork name _PU + 'CFNetServiceSetProtocolSpecificInformation';
function CFSocketStreamSOCKSGetErrorSubdomain(error: Pointer): Int32; cdecl;
external libCFNetwork name _PU + 'CFSocketStreamSOCKSGetErrorSubdomain';
function CFSocketStreamSOCKSGetError(error: Pointer): Int32; cdecl;
external libCFNetwork name _PU + 'CFSocketStreamSOCKSGetError';
procedure CFStreamCreatePairWithSocketToCFHost(alloc: CFAllocatorRef;
host: CFHostRef; port: Int32; readStream: Pointer; writeStream: Pointer);
cdecl; external libCFNetwork name _PU +
'CFStreamCreatePairWithSocketToCFHost';
procedure CFStreamCreatePairWithSocketToNetService(alloc: CFAllocatorRef;
service: CFNetServiceRef; readStream: Pointer; writeStream: Pointer); cdecl;
external libCFNetwork name _PU + 'CFStreamCreatePairWithSocketToNetService';
function CFNetworkCopySystemProxySettings: CFDictionaryRef; cdecl;
external libCFNetwork name _PU + 'CFNetworkCopySystemProxySettings';
function CFNetworkCopyProxiesForURL(url: CFURLRef;
proxySettings: CFDictionaryRef): CFArrayRef; cdecl;
external libCFNetwork name _PU + 'CFNetworkCopyProxiesForURL';
function CFNetworkCopyProxiesForAutoConfigurationScript
(proxyAutoConfigurationScript: CFStringRef; targetURL: CFURLRef;
error: Pointer): CFArrayRef; cdecl;
external libCFNetwork name _PU +
'CFNetworkCopyProxiesForAutoConfigurationScript';
function CFNetworkExecuteProxyAutoConfigurationScript
(proxyAutoConfigurationScript: CFStringRef; targetURL: CFURLRef;
cb: CFProxyAutoConfigurationResultCallback; clientContext: Pointer)
: CFRunLoopSourceRef; cdecl;
external libCFNetwork name _PU +
'CFNetworkExecuteProxyAutoConfigurationScript';
function CFNetworkExecuteProxyAutoConfigurationURL(proxyAutoConfigURL: CFURLRef;
targetURL: CFURLRef; cb: CFProxyAutoConfigurationResultCallback;
clientContext: Pointer): CFRunLoopSourceRef; cdecl;
external libCFNetwork name _PU + 'CFNetworkExecuteProxyAutoConfigurationURL';
implementation
{$IF defined(IOS) and NOT defined(CPUARM)}
uses
Posix.Dlfcn;
var
CFNetworkModule: THandle;
{$ENDIF IOS}
function kCFStreamErrorDomainFTP: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamErrorDomainFTP');
end;
function kCFStreamPropertyFTPUserName: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPUserName');
end;
function kCFStreamPropertyFTPPassword: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPPassword');
end;
function kCFStreamPropertyFTPUsePassiveMode: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyFTPUsePassiveMode');
end;
function kCFStreamPropertyFTPResourceSize: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPResourceSize');
end;
function kCFStreamPropertyFTPFetchResourceInfo: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyFTPFetchResourceInfo');
end;
function kCFStreamPropertyFTPFileTransferOffset: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyFTPFileTransferOffset');
end;
function kCFStreamPropertyFTPAttemptPersistentConnection: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyFTPAttemptPersistentConnection');
end;
function kCFStreamPropertyFTPProxy: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPProxy');
end;
function kCFStreamPropertyFTPProxyHost: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPProxyHost');
end;
function kCFStreamPropertyFTPProxyPort: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPProxyPort');
end;
function kCFStreamPropertyFTPProxyUser: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyFTPProxyUser');
end;
function kCFStreamPropertyFTPProxyPassword: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyFTPProxyPassword');
end;
function kCFFTPResourceMode: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceMode');
end;
function kCFFTPResourceName: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceName');
end;
function kCFFTPResourceOwner: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceOwner');
end;
function kCFFTPResourceGroup: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceGroup');
end;
function kCFFTPResourceLink: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceLink');
end;
function kCFFTPResourceSize: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceSize');
end;
function kCFFTPResourceType: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceType');
end;
function kCFFTPResourceModDate: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFFTPResourceModDate');
end;
function kCFStreamErrorDomainNetDB: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamErrorDomainNetDB');
end;
function kCFStreamErrorDomainSystemConfiguration: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamErrorDomainSystemConfiguration');
end;
function kCFHTTPVersion1_0: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPVersion1_0');
end;
function kCFHTTPVersion1_1: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPVersion1_1');
end;
function kCFHTTPVersion2_0: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPVersion2_0');
end;
function kCFHTTPAuthenticationSchemeBasic: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPAuthenticationSchemeBasic');
end;
function kCFHTTPAuthenticationSchemeDigest: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeDigest');
end;
function kCFHTTPAuthenticationSchemeNTLM: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPAuthenticationSchemeNTLM');
end;
function kCFHTTPAuthenticationSchemeKerberos: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeKerberos');
end;
function kCFHTTPAuthenticationSchemeNegotiate: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeNegotiate');
end;
function kCFHTTPAuthenticationSchemeNegotiate2: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeNegotiate2');
end;
function kCFHTTPAuthenticationSchemeXMobileMeAuthToken: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeXMobileMeAuthToken');
end;
function kCFHTTPAuthenticationSchemeOAuth1: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationSchemeOAuth1');
end;
function kCFHTTPAuthenticationUsername: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPAuthenticationUsername');
end;
function kCFHTTPAuthenticationPassword: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFHTTPAuthenticationPassword');
end;
function kCFHTTPAuthenticationAccountDomain: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFHTTPAuthenticationAccountDomain');
end;
function kCFStreamErrorDomainHTTP: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamErrorDomainHTTP');
end;
function kCFStreamPropertyHTTPResponseHeader: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyHTTPResponseHeader');
end;
function kCFStreamPropertyHTTPFinalURL: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPFinalURL');
end;
function kCFStreamPropertyHTTPFinalRequest: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyHTTPFinalRequest');
end;
function kCFStreamPropertyHTTPProxy: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPProxy');
end;
function kCFStreamPropertyHTTPProxyHost: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPProxyHost');
end;
function kCFStreamPropertyHTTPProxyPort: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPProxyPort');
end;
function kCFStreamPropertyHTTPSProxyHost: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPSProxyHost');
end;
function kCFStreamPropertyHTTPSProxyPort: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamPropertyHTTPSProxyPort');
end;
function kCFStreamPropertyHTTPShouldAutoredirect: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyHTTPShouldAutoredirect');
end;
function kCFStreamPropertyHTTPAttemptPersistentConnection: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyHTTPAttemptPersistentConnection');
end;
function kCFStreamPropertyHTTPRequestBytesWrittenCount: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFStreamPropertyHTTPRequestBytesWrittenCount');
end;
function kCFStreamErrorDomainMach: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamErrorDomainMach');
end;
function kCFStreamErrorDomainNetServices: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFStreamErrorDomainNetServices');
end;
function kCFErrorDomainCFNetwork: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFErrorDomainCFNetwork');
end;
function kCFErrorDomainWinSock: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFErrorDomainWinSock');
end;
function kCFURLErrorFailingURLErrorKey: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFURLErrorFailingURLErrorKey');
end;
function kCFURLErrorFailingURLStringErrorKey: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork,
'kCFURLErrorFailingURLStringErrorKey');
end;
function kCFGetAddrInfoFailureKey: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFGetAddrInfoFailureKey');
end;
function kCFSOCKSStatusCodeKey: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFSOCKSStatusCodeKey');
end;
function kCFSOCKSVersionKey: Pointer;
begin
Result := CocoaPointerConst(libCFNetwork, 'kCFSOCKSVersionKey');
end;
function kCFSOCKSNegotiationMethodKey: Pointer;