GCDAsyncHTTPSProxySocket.h 628 B

1234567891011121314151617181920212223
  1. //
  2. // GCDAsyncHTTPSProxySocket.h
  3. //
  4. // Copyright © 2019 Threema GmbH. All rights reserved.
  5. // Derived from ProxyKit, Copyright (c) 2014 Chris Ballinger
  6. //
  7. #include "GCDAsyncSocket.h"
  8. typedef NS_ENUM(int16_t, GCDAsyncProxySocketError) {
  9. GCDAsyncProxySocketNoError = 0, // Never used
  10. GCDAsyncProxySocketAuthenticationError
  11. };
  12. @interface GCDAsyncHTTPSProxySocket : GCDAsyncSocket <GCDAsyncSocketDelegate>
  13. // HTTPS proxy settings
  14. @property (nonatomic, strong, readonly) NSString *proxyHost;
  15. @property (nonatomic, readonly) uint16_t proxyPort;
  16. - (void) setProxyHost:(NSString*)host port:(uint16_t)port;
  17. @end