DEPRECATED: Diffusion iOS Classic API  5.9.4
 All Data Structures Files Functions Variables Enumerations Enumerator Properties Macros Pages
DFServerDetails.h
1 //
2 // DFServerDetails.h
3 // DiffusionTransport
4 //
5 // Created by Martin Cowie on 14/04/2011 - Diffusion 5.9.4_01
6 // Copyright 2011 Push Technology. All rights reserved.
7 //
8 
9 #import "DFBaseConnectionProperties.h"
10 @class AsyncSocket, DFClient;
11 
12 /**
13  An object to contain details required to connect to a single instance of Diffusion.
14  */
16 
17 /**
18  Initialise a DFServerDetails object.
19 
20  URLs given must be of the form wss://push.example.com:443.
21  The port number is mandatory as no default port number is assumed.
22 
23  @param url URL of the required Diffusion server. Supported schemes: "ws", "wss", "dpt" and "dpts".
24  @return an initialiased DFServerDetails object
25  @throws DFException if the URL scheme is unsupported or is missing the port number.
26  @deprecated in favor of [initWithURL:error:]
27  */
28 -(id)initWithURL:(NSURL*)url __attribute__((deprecated));
29 
30 /**
31  Initialise a DFServerDetails object.
32 
33  URLs given must be of the form wss://push.example.com:443.
34  The port number is mandatory as no default port number is assumed.
35 
36  @param url URL of the required Diffusion server. Supported schemes: "ws", "wss", "dpt" and "dpts".
37  @param error Error object to populate in the possibility that is method call should fail
38  @return an initialiased DFServerDetails object, or nil in case of error
39  */
40 -(id)initWithURL:(NSURL*)url error:(NSError*__autoreleasing*)error;
41 
42 
43 @property(nonatomic,readonly) NSURL *url; /**< The URL describing the location of the Diffusion serer */
44 
45 @end