Skip to content

Commit 61fd943

Browse files
committed
Add some documentation around URIs and ghosts
Issue #89 [#128311253]
1 parent a751b3c commit 61fd943

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

RMQClient/RMQConnection.h

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,44 @@ extern NSInteger const RMQChannelLimit;
118118
delegate:(nullable id<RMQConnectionDelegate>)delegate
119119
delegateQueue:(nonnull dispatch_queue_t)delegateQueue;
120120

121-
/// @brief Configurable TLS options. Use this if you wants TLS on a port other than 443.
121+
/*!
122+
* @brief Configurable TLS options. Use this if you wants TLS on a port other than 443.
123+
* @param uri The URI contains all connection information, including credentials.<br/>
124+
For example, "amqps://user:pass@hostname:1234/myvhost".<br/>
125+
Note: to use the default "/" vhost, omit the trailing slash (or else you must encode it as %2F).
126+
* @param tlsOptions The RMQTLSOptions to use
127+
* @param delegate Any object that conforms to the RMQConnectionDelegate protocol.
128+
Use this to handle connection- and channel-level errors.
129+
RMQConnectionDelegateLogger is useful for development purposes.
130+
*/
122131
- (nonnull instancetype)initWithUri:(nonnull NSString *)uri
123132
tlsOptions:(nonnull RMQTLSOptions *)tlsOptions
124133
delegate:(nullable id<RMQConnectionDelegate>)delegate;
125134

126-
/// @brief Parses URI to obtain credentials and TLS, customisable peer verification.
135+
/*!
136+
* @brief Parses URI to obtain credentials and TLS, customisable peer verification.
137+
* @param uri The URI contains all connection information, including credentials.<br/>
138+
For example, "amqps://user:pass@hostname:1234/myvhost".<br/>
139+
Note: to use the default "/" vhost, omit the trailing slash (or else you must encode it as %2F).
140+
* @param verifyPeer Set to NO / false when developing against servers without valid certificates.
141+
Never set this to NO / false in production.
142+
* @param delegate Any object that conforms to the RMQConnectionDelegate protocol.
143+
Use this to handle connection- and channel-level errors.
144+
RMQConnectionDelegateLogger is useful for development purposes.
145+
*/
127146
- (nonnull instancetype)initWithUri:(nonnull NSString *)uri
128147
verifyPeer:(BOOL)verifyPeer
129148
delegate:(nullable id<RMQConnectionDelegate>)delegate;
130149

131-
/// @brief Parses URI to obtain credentials and TLS enablement (which implies verifyPeer).
150+
/*!
151+
* @brief Parses URI to obtain credentials and TLS enablement (which implies verifyPeer).
152+
* @param uri The URI contains all connection information, including credentials.<br/>
153+
For example, "amqps://user:pass@hostname:1234/myvhost".<br/>
154+
Note: to use the default "/" vhost, omit the trailing slash (or else you must encode it as %2F).
155+
* @param delegate Any object that conforms to the RMQConnectionDelegate protocol.
156+
Use this to handle connection- and channel-level errors.
157+
RMQConnectionDelegateLogger is useful for development purposes.
158+
*/
132159
- (nonnull instancetype)initWithUri:(nonnull NSString *)uri
133160
delegate:(nullable id<RMQConnectionDelegate>)delegate;
134161

0 commit comments

Comments
 (0)