Differences From Artifact [02231d7620]:
- File src/OFTCPSocket.h — part of check-in [48708f2435] at 2011-10-04 18:17:10 on branch trunk — Move SOCKS5 support to OFTCPSocket. (user: js, size: 3426) [annotate] [blame] [check-ins using]
To Artifact [fa3ba9a6c5]:
- File
src/OFTCPSocket.h
— part of check-in
[a3b3333128]
at
2011-12-08 02:25:45
on branch trunk
— Make it possible to set a default SOCKS5 proxy for all OFTCPSockets.
For example, this is useful if you want to use
+[OFString stringWithContentsOfURL:] with a proxy or if you just want
to use anything that uses an OFTCPSocket with a proxy (even 3rd party
libraries). (user: js, size: 4212) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #ifdef OF_HAVE_PROPERTIES @property (assign, readonly, getter=isListening) BOOL listening; @property (copy) OFString *SOCKS5Host; @property (assign) uint16_t SOCKS5Port; #endif /** * \brief Sets the host to use as a SOCKS5 proxy. * * \param host The host to use as a SOCKS5 proxy */ - (void)setSOCKS5Host: (OFString*)host; | > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | #ifdef OF_HAVE_PROPERTIES @property (assign, readonly, getter=isListening) BOOL listening; @property (copy) OFString *SOCKS5Host; @property (assign) uint16_t SOCKS5Port; #endif /** * \brief Sets the global SOCKS5 proxy host to use when creating a new socket * * \param host The host to use as a SOCKS5 proxy when creating a new socket */ + (void)setSOCKS5Host: (OFString*)host; /** * \brief Returns the host to use as a SOCKS5 proxy when creating a new socket * * \return The host to use as a SOCKS5 proxy when creating a new socket */ + (OFString*)SOCKS5Host; /** * \brief Sets the global SOCKS5 proxy port to use when creating a new socket * * \param port The port to use as a SOCKS5 proxy when creating a new socket */ + (void)setSOCKS5Port: (uint16_t)port; /** * \brief Returns the port to use as a SOCKS5 proxy when creating a new socket * * \return The port to use as a SOCKS5 proxy when creating a new socket */ + (uint16_t)SOCKS5Port; /** * \brief Sets the host to use as a SOCKS5 proxy. * * \param host The host to use as a SOCKS5 proxy */ - (void)setSOCKS5Host: (OFString*)host; |
︙ | ︙ |