BUNetworkProxy Class Reference

Inherits from NSObject
Declared in BUNetworkProxy.h

Overview

Manually set proxy information for the imp to use

The initializer is failable and may return nil if the server is nil or empty

– initWithServer:port:

Create proxy information for an imp

- (_Nullable instancetype)initWithServer:(nonnull NSString *)server port:(uint16_t)port

Parameters

server

Valid IP or Hostname of the proxy server

port

Port of the proxy server

Return Value

nil if any parameters are invalid, a BUNetworkProxy if creation was successful

Declared In

BUNetworkProxy.h

– initWithServer:port:username:password:

Create proxy information for an imp

If the username or password is nil, neither will be used

- (_Nullable instancetype)initWithServer:(nonnull NSString *)server port:(uint16_t)port username:(nullable NSString *)username password:(nullable NSString *)password

Parameters

server

Valid IP or Hostname of the proxy server

port

Port of the proxy server

username

Username used for authentication (optional)

password

Password used for authentication (optional)

Return Value

nil if any parameters are invalid, a BUNetworkProxy if creation was successful

Declared In

BUNetworkProxy.h

  server

IP or Hostname of the proxy server

@property (strong, nonatomic, nonnull, readonly) NSString *server

Declared In

BUNetworkProxy.h

  port

Port of the proxy server

@property (assign, nonatomic, readonly) uint16_t port

Declared In

BUNetworkProxy.h

  username

Username used for authentication (optional)

@property (strong, nonatomic, nullable, readonly) NSString *username

Declared In

BUNetworkProxy.h

  password

Password used for authentication (optional)

@property (strong, nonatomic, nullable, readonly) NSString *password

Declared In

BUNetworkProxy.h