Mercurial > projects > dstep
comparison dstep/coreservices/cfnetwork/CFFTPStream.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jul 22, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coreservices.cfnetwork.CFFTPStream; | |
8 | |
9 //import dstep.Availability; | |
10 import dstep.corefoundation.CFBase; | |
11 import dstep.corefoundation.CFDictionary; | |
12 import dstep.corefoundation.CFStream; | |
13 import dstep.corefoundation.CFURL; | |
14 import dstep.coreservices.cfnetwork.CFNetworkDefs; | |
15 | |
16 extern (C) | |
17 { | |
18 extern | |
19 { | |
20 const int kCFStreamErrorDomainFTP; | |
21 const CFStringRef kCFStreamPropertyFTPUserName; | |
22 const CFStringRef kCFStreamPropertyFTPPassword; | |
23 const CFStringRef kCFStreamPropertyFTPUsePassiveMode; | |
24 const CFStringRef kCFStreamPropertyFTPResourceSize; | |
25 const CFStringRef kCFStreamPropertyFTPFetchResourceInfo; | |
26 const CFStringRef kCFStreamPropertyFTPFileTransferOffset; | |
27 const CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection; | |
28 const CFStringRef kCFStreamPropertyFTPProxy; | |
29 const CFStringRef kCFStreamPropertyFTPProxyHost; | |
30 const CFStringRef kCFStreamPropertyFTPProxyPort; | |
31 const CFStringRef kCFStreamPropertyFTPProxyUser; | |
32 const CFStringRef kCFStreamPropertyFTPProxyPassword; | |
33 const CFStringRef kCFFTPResourceMode; | |
34 const CFStringRef kCFFTPResourceName; | |
35 const CFStringRef kCFFTPResourceOwner; | |
36 const CFStringRef kCFFTPResourceGroup; | |
37 const CFStringRef kCFFTPResourceLink; | |
38 const CFStringRef kCFFTPResourceSize; | |
39 const CFStringRef kCFFTPResourceType; | |
40 const CFStringRef kCFFTPResourceModDate; | |
41 } | |
42 } | |
43 | |
44 extern (C) | |
45 { | |
46 CFReadStreamRef CFReadStreamCreateWithFTPURL (CFAllocatorRef alloc, CFURLRef ftpURL); | |
47 int CFFTPCreateParsedResourceListing (CFAllocatorRef alloc, char* buffer, int bufferLength, CFDictionaryRef* parsed); | |
48 CFWriteStreamRef CFWriteStreamCreateWithFTPURL (CFAllocatorRef alloc, CFURLRef ftpURL); | |
49 } |