zeroc-ice 3.7.11__cp313-cp313-macosx_10_13_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. Glacier2/Metrics_ice.py +82 -0
  2. Glacier2/PermissionsVerifierF_ice.py +32 -0
  3. Glacier2/PermissionsVerifier_ice.py +284 -0
  4. Glacier2/RouterF_ice.py +28 -0
  5. Glacier2/Router_ice.py +618 -0
  6. Glacier2/SSLInfo_ice.py +179 -0
  7. Glacier2/Session_ice.py +1103 -0
  8. Glacier2/__init__.py +226 -0
  9. Ice/BuiltinSequences_ice.py +65 -0
  10. Ice/CommunicatorF_ice.py +27 -0
  11. Ice/Communicator_ice.py +469 -0
  12. Ice/ConnectionF_ice.py +33 -0
  13. Ice/Connection_ice.py +680 -0
  14. Ice/Current_ice.py +175 -0
  15. Ice/EndpointF_ice.py +45 -0
  16. Ice/EndpointTypes_ice.py +54 -0
  17. Ice/Endpoint_ice.py +304 -0
  18. Ice/FacetMap_ice.py +27 -0
  19. Ice/Identity_ice.py +133 -0
  20. Ice/ImplicitContextF_ice.py +27 -0
  21. Ice/ImplicitContext_ice.py +119 -0
  22. Ice/InstrumentationF_ice.py +38 -0
  23. Ice/Instrumentation_ice.py +566 -0
  24. Ice/LocalException_ice.py +1715 -0
  25. Ice/LocatorF_ice.py +32 -0
  26. Ice/Locator_ice.py +728 -0
  27. Ice/LoggerF_ice.py +27 -0
  28. Ice/Logger_ice.py +96 -0
  29. Ice/Metrics_ice.py +864 -0
  30. Ice/ObjectAdapterF_ice.py +27 -0
  31. Ice/ObjectAdapter_ice.py +461 -0
  32. Ice/ObjectFactory_ice.py +68 -0
  33. Ice/PluginF_ice.py +30 -0
  34. Ice/Plugin_ice.py +136 -0
  35. Ice/ProcessF_ice.py +28 -0
  36. Ice/Process_ice.py +175 -0
  37. Ice/PropertiesAdmin_ice.py +247 -0
  38. Ice/PropertiesF_ice.py +31 -0
  39. Ice/Properties_ice.py +199 -0
  40. Ice/Py3/IceFuture.py +52 -0
  41. Ice/Py3/__init__.py +3 -0
  42. Ice/RemoteLogger_ice.py +617 -0
  43. Ice/RouterF_ice.py +28 -0
  44. Ice/Router_ice.py +350 -0
  45. Ice/ServantLocatorF_ice.py +27 -0
  46. Ice/ServantLocator_ice.py +110 -0
  47. Ice/SliceChecksumDict_ice.py +29 -0
  48. Ice/ValueFactory_ice.py +125 -0
  49. Ice/Version_ice.py +217 -0
  50. Ice/__init__.py +2008 -0
  51. IceBox/IceBox_ice.py +644 -0
  52. IceBox/__init__.py +10 -0
  53. IceGrid/Admin_ice.py +6662 -0
  54. IceGrid/Descriptor_ice.py +1795 -0
  55. IceGrid/Exception_ice.py +592 -0
  56. IceGrid/FileParser_ice.py +171 -0
  57. IceGrid/PluginFacade_ice.py +288 -0
  58. IceGrid/Registry_ice.py +985 -0
  59. IceGrid/Session_ice.py +406 -0
  60. IceGrid/UserAccountMapper_ice.py +166 -0
  61. IceGrid/__init__.py +17 -0
  62. IceMX/__init__.py +12 -0
  63. IcePatch2/FileInfo_ice.py +287 -0
  64. IcePatch2/FileServer_ice.py +555 -0
  65. IcePatch2/__init__.py +11 -0
  66. IcePy.cpython-313-darwin.so +0 -0
  67. IceStorm/IceStorm_ice.py +1265 -0
  68. IceStorm/Metrics_ice.py +106 -0
  69. IceStorm/__init__.py +10 -0
  70. slice/Glacier2/Metrics.ice +88 -0
  71. slice/Glacier2/PermissionsVerifier.ice +111 -0
  72. slice/Glacier2/PermissionsVerifierF.ice +30 -0
  73. slice/Glacier2/Router.ice +186 -0
  74. slice/Glacier2/RouterF.ice +29 -0
  75. slice/Glacier2/SSLInfo.ice +59 -0
  76. slice/Glacier2/Session.ice +274 -0
  77. slice/Ice/BuiltinSequences.ice +59 -0
  78. slice/Ice/Communicator.ice +676 -0
  79. slice/Ice/CommunicatorF.ice +31 -0
  80. slice/Ice/Connection.ice +516 -0
  81. slice/Ice/ConnectionF.ice +33 -0
  82. slice/Ice/Current.ice +170 -0
  83. slice/Ice/Endpoint.ice +291 -0
  84. slice/Ice/EndpointF.ice +43 -0
  85. slice/Ice/EndpointTypes.ice +48 -0
  86. slice/Ice/FacetMap.ice +36 -0
  87. slice/Ice/Identity.ice +75 -0
  88. slice/Ice/ImplicitContext.ice +119 -0
  89. slice/Ice/ImplicitContextF.ice +30 -0
  90. slice/Ice/Instrumentation.ice +509 -0
  91. slice/Ice/InstrumentationF.ice +38 -0
  92. slice/Ice/LocalException.ice +1040 -0
  93. slice/Ice/Locator.ice +239 -0
  94. slice/Ice/LocatorF.ice +32 -0
  95. slice/Ice/Logger.ice +99 -0
  96. slice/Ice/LoggerF.ice +31 -0
  97. slice/Ice/Metrics.ice +436 -0
  98. slice/Ice/ObjectAdapter.ice +710 -0
  99. slice/Ice/ObjectAdapterF.ice +31 -0
  100. slice/Ice/ObjectFactory.ice +71 -0
  101. slice/Ice/Plugin.ice +131 -0
  102. slice/Ice/PluginF.ice +36 -0
  103. slice/Ice/Process.ice +64 -0
  104. slice/Ice/ProcessF.ice +31 -0
  105. slice/Ice/Properties.ice +244 -0
  106. slice/Ice/PropertiesAdmin.ice +87 -0
  107. slice/Ice/PropertiesF.ice +32 -0
  108. slice/Ice/RemoteLogger.ice +226 -0
  109. slice/Ice/Router.ice +103 -0
  110. slice/Ice/RouterF.ice +31 -0
  111. slice/Ice/ServantLocator.ice +136 -0
  112. slice/Ice/ServantLocatorF.ice +31 -0
  113. slice/Ice/SliceChecksumDict.ice +36 -0
  114. slice/Ice/ValueFactory.ice +133 -0
  115. slice/Ice/Version.ice +51 -0
  116. slice/IceBT/ConnectionInfo.ice +59 -0
  117. slice/IceBT/EndpointInfo.ice +57 -0
  118. slice/IceBT/Types.ice +45 -0
  119. slice/IceBox/IceBox.ice +216 -0
  120. slice/IceGrid/Admin.ice +1957 -0
  121. slice/IceGrid/Descriptor.ice +1094 -0
  122. slice/IceGrid/Exception.ice +396 -0
  123. slice/IceGrid/FileParser.ice +72 -0
  124. slice/IceGrid/PluginFacade.ice +329 -0
  125. slice/IceGrid/Registry.ice +269 -0
  126. slice/IceGrid/Session.ice +128 -0
  127. slice/IceGrid/UserAccountMapper.ice +69 -0
  128. slice/IceIAP/ConnectionInfo.ice +74 -0
  129. slice/IceIAP/EndpointInfo.ice +68 -0
  130. slice/IcePatch2/FileInfo.ice +85 -0
  131. slice/IcePatch2/FileServer.ice +191 -0
  132. slice/IceSSL/ConnectionInfo.ice +54 -0
  133. slice/IceSSL/ConnectionInfoF.ice +31 -0
  134. slice/IceSSL/EndpointInfo.ice +45 -0
  135. slice/IceStorm/IceStorm.ice +414 -0
  136. slice/IceStorm/Metrics.ice +83 -0
  137. slice2py.py +21 -0
  138. zeroc_ice-3.7.11.dist-info/METADATA +97 -0
  139. zeroc_ice-3.7.11.dist-info/RECORD +142 -0
  140. zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
  141. zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
  142. zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
@@ -0,0 +1,106 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (c) ZeroC, Inc. All rights reserved.
4
+ #
5
+ #
6
+ # Ice version 3.7.11
7
+ #
8
+ # <auto-generated>
9
+ #
10
+ # Generated from file `Metrics.ice'
11
+ #
12
+ # Warning: do not edit this file.
13
+ #
14
+ # </auto-generated>
15
+ #
16
+
17
+ from sys import version_info as _version_info_
18
+ import Ice, IcePy
19
+ import Ice.Metrics_ice
20
+
21
+ # Included module Ice
22
+ _M_Ice = Ice.openModule('Ice')
23
+
24
+ # Included module IceMX
25
+ _M_IceMX = Ice.openModule('IceMX')
26
+
27
+ # Start of module IceMX
28
+ __name__ = 'IceMX'
29
+
30
+ if 'TopicMetrics' not in _M_IceMX.__dict__:
31
+ _M_IceMX.TopicMetrics = Ice.createTempClass()
32
+ class TopicMetrics(_M_IceMX.Metrics):
33
+ """
34
+ Provides information on IceStorm topics.
35
+ Members:
36
+ published -- Number of events published on the topic by publishers.
37
+ forwarded -- Number of events forwarded on the topic by IceStorm topic links.
38
+ """
39
+ def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, published=0, forwarded=0):
40
+ _M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
41
+ self.published = published
42
+ self.forwarded = forwarded
43
+
44
+ def ice_id(self):
45
+ return '::IceMX::TopicMetrics'
46
+
47
+ @staticmethod
48
+ def ice_staticId():
49
+ return '::IceMX::TopicMetrics'
50
+
51
+ def __str__(self):
52
+ return IcePy.stringify(self, _M_IceMX._t_TopicMetrics)
53
+
54
+ __repr__ = __str__
55
+
56
+ _M_IceMX._t_TopicMetrics = IcePy.defineValue('::IceMX::TopicMetrics', TopicMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
57
+ ('published', (), IcePy._t_long, False, 0),
58
+ ('forwarded', (), IcePy._t_long, False, 0)
59
+ ))
60
+ TopicMetrics._ice_type = _M_IceMX._t_TopicMetrics
61
+
62
+ _M_IceMX.TopicMetrics = TopicMetrics
63
+ del TopicMetrics
64
+
65
+ if 'SubscriberMetrics' not in _M_IceMX.__dict__:
66
+ _M_IceMX.SubscriberMetrics = Ice.createTempClass()
67
+ class SubscriberMetrics(_M_IceMX.Metrics):
68
+ """
69
+ Provides information on IceStorm subscribers.
70
+ Members:
71
+ queued -- Number of queued events.
72
+ outstanding -- Number of outstanding events.
73
+ delivered -- Number of forwarded events.
74
+ """
75
+ def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, queued=0, outstanding=0, delivered=0):
76
+ _M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
77
+ self.queued = queued
78
+ self.outstanding = outstanding
79
+ self.delivered = delivered
80
+
81
+ def ice_id(self):
82
+ return '::IceMX::SubscriberMetrics'
83
+
84
+ @staticmethod
85
+ def ice_staticId():
86
+ return '::IceMX::SubscriberMetrics'
87
+
88
+ def __str__(self):
89
+ return IcePy.stringify(self, _M_IceMX._t_SubscriberMetrics)
90
+
91
+ __repr__ = __str__
92
+
93
+ _M_IceMX._t_SubscriberMetrics = IcePy.defineValue('::IceMX::SubscriberMetrics', SubscriberMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
94
+ ('queued', (), IcePy._t_int, False, 0),
95
+ ('outstanding', (), IcePy._t_int, False, 0),
96
+ ('delivered', (), IcePy._t_long, False, 0)
97
+ ))
98
+ SubscriberMetrics._ice_type = _M_IceMX._t_SubscriberMetrics
99
+
100
+ _M_IceMX.SubscriberMetrics = SubscriberMetrics
101
+ del SubscriberMetrics
102
+
103
+ # End of module IceMX
104
+
105
+ Ice.sliceChecksums["::IceMX::SubscriberMetrics"] = "ab5eddbb2d0449f94b4808b6cf92552"
106
+ Ice.sliceChecksums["::IceMX::TopicMetrics"] = "afc516f773371c41f4f612d9e9629c"
IceStorm/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ # Generated by slice2py - DO NOT EDIT!
2
+ #
3
+
4
+ import Ice
5
+ Ice.updateModule("IceStorm")
6
+
7
+ # Modules:
8
+ import IceStorm.IceStorm_ice
9
+
10
+ # Submodules:
@@ -0,0 +1,88 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+ [["cpp:include:Glacier2/Config.h"]]
11
+
12
+ [["ice-prefix"]]
13
+
14
+ [["js:module:ice"]]
15
+
16
+ [["objc:dll-export:GLACIER2_API"]]
17
+ [["objc:header-dir:objc"]]
18
+
19
+ [["python:pkgdir:Glacier2"]]
20
+
21
+ #include <Ice/Metrics.ice>
22
+
23
+ #ifndef __SLICE2JAVA_COMPAT__
24
+ [["java:package:com.zeroc"]]
25
+ #endif
26
+
27
+ ["objc:prefix:ICEMX", "swift:module:Glacier2:MX"]
28
+ module IceMX
29
+ {
30
+
31
+ /**
32
+ *
33
+ * Provides information on Glacier2 sessions.
34
+ *
35
+ **/
36
+ class SessionMetrics extends Metrics
37
+ {
38
+ /**
39
+ *
40
+ * Number of client requests forwared.
41
+ *
42
+ **/
43
+ int forwardedClient = 0;
44
+
45
+ /**
46
+ *
47
+ * Number of server requests forwared.
48
+ *
49
+ **/
50
+ int forwardedServer = 0;
51
+
52
+ /**
53
+ *
54
+ * The size of the routing table.
55
+ *
56
+ **/
57
+ int routingTableSize = 0;
58
+
59
+ /**
60
+ *
61
+ * Number of client requests queued.
62
+ *
63
+ **/
64
+ int queuedClient = 0;
65
+
66
+ /**
67
+ *
68
+ * Number of server requests queued.
69
+ *
70
+ **/
71
+ int queuedServer = 0;
72
+
73
+ /**
74
+ *
75
+ * Number of client requests overridden.
76
+ *
77
+ **/
78
+ int overriddenClient = 0;
79
+
80
+ /**
81
+ *
82
+ * Number of server requests overridden.
83
+ *
84
+ **/
85
+ int overriddenServer = 0;
86
+ }
87
+
88
+ }
@@ -0,0 +1,111 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+ [["cpp:include:Glacier2/Config.h"]]
11
+
12
+ [["js:module:ice"]]
13
+ [["js:cjs-module"]]
14
+
15
+ [["objc:dll-export:GLACIER2_API"]]
16
+ [["objc:header-dir:objc"]]
17
+
18
+ [["python:pkgdir:Glacier2"]]
19
+
20
+ #include <Glacier2/SSLInfo.ice>
21
+
22
+ #ifndef __SLICE2JAVA_COMPAT__
23
+ [["java:package:com.zeroc"]]
24
+ #endif
25
+
26
+ ["objc:prefix:GLACIER2"]
27
+ module Glacier2
28
+ {
29
+
30
+ /**
31
+ *
32
+ * This exception is raised if a client is denied the ability to create
33
+ * a session with the router.
34
+ *
35
+ **/
36
+ ["preserve-slice"]
37
+ exception PermissionDeniedException
38
+ {
39
+ /**
40
+ *
41
+ * The reason why permission was denied.
42
+ *
43
+ **/
44
+ string reason;
45
+ }
46
+
47
+ /**
48
+ *
49
+ * The Glacier2 permissions verifier. This is called through the
50
+ * process of establishing a session.
51
+ *
52
+ * @see Router
53
+ *
54
+ **/
55
+ interface PermissionsVerifier
56
+ {
57
+ /**
58
+ *
59
+ * Check whether a user has permission to access the router.
60
+ *
61
+ * @param userId The user id for which to check permission.
62
+ *
63
+ * @param password The user's password.
64
+ *
65
+ * @param reason The reason why access was denied.
66
+ *
67
+ * @return True if access is granted, or false otherwise.
68
+ *
69
+ * @throws PermissionDeniedException Raised if the user access is
70
+ * denied. This can be raised in place of returning false with a
71
+ * reason set in the reason out parameter.
72
+ *
73
+ **/
74
+ ["nonmutating", "cpp:const", "format:sliced"]
75
+ idempotent bool checkPermissions(string userId, string password, out string reason)
76
+ throws PermissionDeniedException;
77
+ }
78
+
79
+ /**
80
+ *
81
+ * The SSL Glacier2 permissions verifier. This is called through the
82
+ * process of establishing a session.
83
+ *
84
+ * @see Router
85
+ *
86
+ **/
87
+ interface SSLPermissionsVerifier
88
+ {
89
+ /**
90
+ *
91
+ * Check whether a user has permission to access the router.
92
+ *
93
+ * @param info The SSL information.
94
+ *
95
+ * @param reason The reason why access was denied.
96
+ *
97
+ * @return True if access is granted, or false otherwise.
98
+ *
99
+ * @throws PermissionDeniedException Raised if the user access is
100
+ * denied. This can be raised in place of returning false with a
101
+ * reason set in the reason out parameter.
102
+ *
103
+ * @see SSLInfo
104
+ *
105
+ **/
106
+ ["nonmutating", "cpp:const", "format:sliced"]
107
+ idempotent bool authorize(SSLInfo info, out string reason)
108
+ throws PermissionDeniedException;
109
+ }
110
+
111
+ }
@@ -0,0 +1,30 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+
11
+ [["js:module:ice"]]
12
+ [["js:cjs-module"]]
13
+
14
+ [["objc:dll-export:GLACIER2_API"]]
15
+ [["objc:header-dir:objc"]]
16
+
17
+ [["python:pkgdir:Glacier2"]]
18
+
19
+ #ifndef __SLICE2JAVA_COMPAT__
20
+ [["java:package:com.zeroc"]]
21
+ #endif
22
+
23
+ ["objc:prefix:GLACIER2"]
24
+ module Glacier2
25
+ {
26
+
27
+ interface PermissionsVerifier;
28
+ interface SSLPermissionsVerifier;
29
+
30
+ }
@@ -0,0 +1,186 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+ [["cpp:include:Glacier2/Config.h"]]
11
+
12
+ [["js:module:ice"]]
13
+ [["js:cjs-module"]]
14
+
15
+ [["objc:dll-export:GLACIER2_API"]]
16
+ [["objc:header-dir:objc"]]
17
+
18
+ [["python:pkgdir:Glacier2"]]
19
+
20
+ #include <Ice/Router.ice>
21
+ #include <Glacier2/Session.ice>
22
+ #include <Glacier2/PermissionsVerifier.ice>
23
+
24
+ #ifndef __SLICE2JAVA_COMPAT__
25
+ [["java:package:com.zeroc"]]
26
+ #endif
27
+
28
+ /**
29
+ *
30
+ * Glacier2 is a firewall solution for Ice. Glacier2 authenticates
31
+ * and filters client requests and allows callbacks to the client in a
32
+ * secure fashion. In combination with IceSSL, Glacier2 provides a
33
+ * security solution that is both non-intrusive and easy to configure.
34
+ *
35
+ **/
36
+ ["objc:prefix:GLACIER2"]
37
+ module Glacier2
38
+ {
39
+
40
+ /**
41
+ *
42
+ * This exception is raised if a client tries to destroy a session
43
+ * with a router, but no session exists for the client.
44
+ *
45
+ * @see Router#destroySession
46
+ *
47
+ **/
48
+ exception SessionNotExistException
49
+ {
50
+ }
51
+
52
+ /**
53
+ *
54
+ * The Glacier2 specialization of the <code>Ice::Router</code> interface.
55
+ *
56
+ **/
57
+ interface Router extends Ice::Router
58
+ {
59
+ /**
60
+ *
61
+ * This category must be used in the identities of all of the client's
62
+ * callback objects. This is necessary in order for the router to
63
+ * forward callback requests to the intended client. If the Glacier2
64
+ * server endpoints are not set, the returned category is an empty
65
+ * string.
66
+ *
67
+ * @return The category.
68
+ *
69
+ **/
70
+ ["nonmutating", "cpp:const"] idempotent string getCategoryForClient();
71
+
72
+ /**
73
+ *
74
+ * Create a per-client session with the router. If a
75
+ * {@link SessionManager} has been installed, a proxy to a {@link Session}
76
+ * object is returned to the client. Otherwise, null is returned
77
+ * and only an internal session (i.e., not visible to the client)
78
+ * is created.
79
+ *
80
+ * If a session proxy is returned, it must be configured to route
81
+ * through the router that created it. This will happen automatically
82
+ * if the router is configured as the client's default router at the
83
+ * time the session proxy is created in the client process, otherwise
84
+ * the client must configure the session proxy explicitly.
85
+ *
86
+ * @see Session
87
+ * @see SessionManager
88
+ * @see PermissionsVerifier
89
+ *
90
+ * @return A proxy for the newly created session, or null if no
91
+ * {@link SessionManager} has been installed.
92
+ *
93
+ * @param userId The user id for which to check the password.
94
+ *
95
+ * @param password The password for the given user id.
96
+ *
97
+ * @throws PermissionDeniedException Raised if the password for
98
+ * the given user id is not correct, or if the user is not allowed
99
+ * access.
100
+ *
101
+ * @throws CannotCreateSessionException Raised if the session
102
+ * cannot be created.
103
+ *
104
+ **/
105
+ ["amd", "format:sliced"] Session* createSession(string userId, string password)
106
+ throws PermissionDeniedException, CannotCreateSessionException;
107
+
108
+ /**
109
+ *
110
+ * Create a per-client session with the router. The user is
111
+ * authenticated through the SSL certificates that have been
112
+ * associated with the connection. If a {@link SessionManager} has been
113
+ * installed, a proxy to a {@link Session} object is returned to the
114
+ * client. Otherwise, null is returned and only an internal
115
+ * session (i.e., not visible to the client) is created.
116
+ *
117
+ * If a session proxy is returned, it must be configured to route
118
+ * through the router that created it. This will happen automatically
119
+ * if the router is configured as the client's default router at the
120
+ * time the session proxy is created in the client process, otherwise
121
+ * the client must configure the session proxy explicitly.
122
+ *
123
+ * @see Session
124
+ * @see SessionManager
125
+ * @see PermissionsVerifier
126
+ *
127
+ * @return A proxy for the newly created session, or null if no
128
+ * {@link SessionManager} has been installed.
129
+ *
130
+ * @throws PermissionDeniedException Raised if the user cannot be
131
+ * authenticated or if the user is not allowed access.
132
+ *
133
+ * @throws CannotCreateSessionException Raised if the session
134
+ * cannot be created.
135
+ *
136
+ **/
137
+ ["amd", "format:sliced"] Session* createSessionFromSecureConnection()
138
+ throws PermissionDeniedException, CannotCreateSessionException;
139
+
140
+ /**
141
+ *
142
+ * Keep the calling client's session with this router alive.
143
+ *
144
+ * @throws SessionNotExistException Raised if no session exists
145
+ * for the calling client.
146
+ *
147
+ **/
148
+ ["amd"] void refreshSession()
149
+ throws SessionNotExistException;
150
+
151
+ /**
152
+ *
153
+ * Destroy the calling client's session with this router.
154
+ *
155
+ * @throws SessionNotExistException Raised if no session exists
156
+ * for the calling client.
157
+ *
158
+ **/
159
+ void destroySession()
160
+ throws SessionNotExistException;
161
+
162
+ /**
163
+ *
164
+ * Get the value of the session timeout. Sessions are destroyed
165
+ * if they see no activity for this period of time.
166
+ *
167
+ * @return The timeout (in seconds).
168
+ *
169
+ **/
170
+ ["nonmutating", "cpp:const"] idempotent long getSessionTimeout();
171
+
172
+ /**
173
+ *
174
+ * Get the value of the ACM timeout. Clients supporting connection
175
+ * heartbeats can enable them instead of explicitly sending keep
176
+ * alives requests.
177
+ *
178
+ * NOTE: This method is only available since Ice 3.6.
179
+ *
180
+ * @return The timeout (in seconds).
181
+ *
182
+ **/
183
+ ["nonmutating", "cpp:const"] idempotent int getACMTimeout();
184
+ }
185
+
186
+ }
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+
11
+ [["js:module:ice"]]
12
+ [["js:cjs-module"]]
13
+
14
+ [["objc:dll-export:GLACIER2_API"]]
15
+ [["objc:header-dir:objc"]]
16
+
17
+ [["python:pkgdir:Glacier2"]]
18
+
19
+ #ifndef __SLICE2JAVA_COMPAT__
20
+ [["java:package:com.zeroc"]]
21
+ #endif
22
+
23
+ ["objc:prefix:GLACIER2"]
24
+ module Glacier2
25
+ {
26
+
27
+ interface Router;
28
+
29
+ }
@@ -0,0 +1,59 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #pragma once
6
+
7
+ [["cpp:dll-export:GLACIER2_API"]]
8
+ [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9
+ [["cpp:header-ext:h"]]
10
+ [["cpp:include:Glacier2/Config.h"]]
11
+
12
+ [["js:module:ice"]]
13
+ [["js:cjs-module"]]
14
+
15
+ [["objc:dll-export:GLACIER2_API"]]
16
+ [["objc:header-dir:objc"]]
17
+
18
+ [["python:pkgdir:Glacier2"]]
19
+
20
+ #include <Ice/BuiltinSequences.ice>
21
+
22
+ #ifndef __SLICE2JAVA_COMPAT__
23
+ [["java:package:com.zeroc"]]
24
+ #endif
25
+
26
+ ["objc:prefix:GLACIER2"]
27
+ module Glacier2
28
+ {
29
+
30
+ /**
31
+ *
32
+ * Information taken from an SSL connection used for permissions
33
+ * verification.
34
+ *
35
+ * @see PermissionsVerifier
36
+ *
37
+ */
38
+ struct SSLInfo
39
+ {
40
+ /** The remote host. */
41
+ string remoteHost;
42
+
43
+ /** The remote port. */
44
+ int remotePort;
45
+
46
+ /** The router's host. */
47
+ string localHost;
48
+
49
+ /** The router's port. */
50
+ int localPort;
51
+
52
+ /** The negotiated cipher suite. */
53
+ string cipher;
54
+
55
+ /** The certificate chain. */
56
+ Ice::StringSeq certs;
57
+ }
58
+
59
+ }