blob: 6ca6fe3b538c7cefdfe3c8d7567551f83a0814b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
87
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#import "LocalObject.h"
NS_ASSUME_NONNULL_BEGIN
ICEIMPL_API @interface ICEEndpoint: ICELocalObject
-(NSString*) toString;
-(id) getInfo;
-(bool) isEqual:(ICEEndpoint* _Nullable)endpoint;
@end
ICEIMPL_API @interface ICEEndpointInfo: ICELocalObject
-(int16_t) getType;
-(BOOL) getDatagram;
-(BOOL) getSecure;
@end
ICEIMPL_API @protocol ICEEndpointInfoFactory
+(id) createTCPEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress
host:(NSString*)host
port:(int32_t)port
sourceAddress:(NSString*)sourceAddress;
+(id) createUDPEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress
host:(NSString*)host
port:(int32_t)port
sourceAddress:(NSString*)sourceAddress
mcastInterface:(NSString*)mcastInterface
mcastTtl:(int32_t)mcastTtl;
+(id) createWSEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress
resource:(NSString*)resource;
+(id) createOpaqueEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress
encodingMajor:(UInt8)encodingMajor
encodingMinor:(UInt8)encodingMinor
rawBytes:(NSData*)rawBytes;
+(id) createSSLEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress;
#if TARGET_OS_IPHONE
+(id) createIAPEndpointInfo:(ICEEndpointInfo*)handle
underlying:(id)underlying
timeout:(int32_t)timeout
compress:(BOOL)compress
manufacturer:(NSString*)manufacturer
modelNumber:(NSString*)modelNumber
name:(NSString*)name
protocol:(NSString*)protocol;
#endif
@end
#ifdef __cplusplus
@interface ICEEndpoint()
@property (nonatomic, readonly) std::shared_ptr<Ice::Endpoint> endpoint;
+(nullable ICEEndpointInfo*) createEndpointInfo:(std::shared_ptr<Ice::EndpointInfo>)infoPtr NS_RETURNS_RETAINED;
@end
@interface ICEEndpointInfo()
@property (nonatomic, readonly) std::shared_ptr<Ice::EndpointInfo> info;
@end
#endif
NS_ASSUME_NONNULL_END
|