zeroc-ice 3.7.9.1 → 3.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/ice/cpp/include/Ice/Config.h +5 -7
- data/ext/ice/cpp/include/Ice/ConsoleUtil.h +1 -1
- data/ext/ice/cpp/include/Ice/Ice.h +2 -2
- data/ext/ice/cpp/include/Ice/SHA1.h +0 -2
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +3 -7
- data/ext/ice/cpp/include/IceUtil/Config.h +12 -44
- data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +1 -1
- data/ext/ice/cpp/include/IceUtil/FileUtil.h +0 -3
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +1 -1
- data/ext/ice/cpp/include/IceUtil/Mutex.h +0 -4
- data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +5 -21
- data/ext/ice/cpp/include/IceUtil/Thread.h +4 -18
- data/ext/ice/cpp/include/IceUtil/Timer.h +1 -0
- data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Communicator.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Connection.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Current.h +4 -4
- data/ext/ice/cpp/include/generated/Ice/Endpoint.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/EndpointF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/FacetMap.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Identity.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/LocalException.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Locator.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/LocatorF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Logger.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/LoggerF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Metrics.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Plugin.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/PluginF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Process.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ProcessF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Properties.h +8 -8
- data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Router.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/RouterF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +2 -2
- data/ext/ice/cpp/include/generated/Ice/Version.h +2 -2
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +2 -2
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +2 -2
- data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +2 -2
- data/ext/ice/cpp/src/Ice/Acceptor.h +1 -1
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Communicator.cpp +2 -2
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Connection.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +1 -1
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +2 -2
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +5 -5
- data/ext/ice/cpp/src/Ice/ConnectionI.h +6 -8
- data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -8
- data/ext/ice/cpp/src/Ice/Current.cpp +2 -2
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -2
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +2 -9
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +2 -2
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +2 -2
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +1 -1
- data/ext/ice/cpp/src/Ice/EventHandler.h +2 -2
- data/ext/ice/cpp/src/Ice/Exception.cpp +0 -27
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +2 -2
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -46
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +1 -11
- data/ext/ice/cpp/src/Ice/Identity.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Instance.cpp +2 -6
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +2 -2
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/LocalException.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Locator.cpp +2 -2
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Logger.cpp +2 -2
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +1 -3
- data/ext/ice/cpp/src/Ice/Metrics.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Network.cpp +15 -841
- data/ext/ice/cpp/src/Ice/Network.h +4 -86
- data/ext/ice/cpp/src/Ice/NetworkF.h +0 -4
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -13
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Plugin.cpp +2 -2
- data/ext/ice/cpp/src/Ice/PluginF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Process.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Properties.cpp +2 -2
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +2 -2
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +4 -12
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Router.cpp +2 -2
- data/ext/ice/cpp/src/Ice/RouterF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/SHA1.cpp +27 -43
- data/ext/ice/cpp/src/Ice/Selector.cpp +1 -13
- data/ext/ice/cpp/src/Ice/Selector.h +1 -17
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +2 -2
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +2 -2
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +4 -167
- data/ext/ice/cpp/src/Ice/StreamSocket.h +3 -10
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -121
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +2 -10
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +1 -1
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +1 -1
- data/ext/ice/cpp/src/Ice/Thread.cpp +1 -243
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +15 -51
- data/ext/ice/cpp/src/Ice/ThreadPool.h +6 -6
- data/ext/ice/cpp/src/Ice/Transceiver.h +1 -1
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +0 -5
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +13 -360
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +2 -23
- data/ext/ice/cpp/src/Ice/ValueFactory.cpp +2 -2
- data/ext/ice/cpp/src/Ice/Version.cpp +2 -2
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +2 -2
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +2 -2
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +2 -45
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +2 -2
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +2 -2
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +2 -2
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +2 -2
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +2 -2
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +2 -2
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +2 -2
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +2 -2
- data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +2 -2
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +2 -2
- data/ext/ice/cpp/src/IceSSL/Util.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +4 -17
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +0 -4
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +0 -45
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +2 -6
- data/ext/ice/cpp/src/IceUtil/UtilException.cpp +1 -1
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +22 -0
- data/ext/ice/cpp/src/Slice/JavaUtil.h +9 -0
- data/ext/ice/mcpp/system.c +0 -4
- data/ice.gemspec +1 -1
- data/lib/Glacier2/Metrics.rb +1 -1
- data/lib/Glacier2/PermissionsVerifier.rb +1 -1
- data/lib/Glacier2/PermissionsVerifierF.rb +1 -1
- data/lib/Glacier2/Router.rb +1 -1
- data/lib/Glacier2/RouterF.rb +1 -1
- data/lib/Glacier2/SSLInfo.rb +1 -1
- data/lib/Glacier2/Session.rb +1 -1
- data/lib/Ice/BuiltinSequences.rb +1 -1
- data/lib/Ice/Communicator.rb +1 -1
- data/lib/Ice/CommunicatorF.rb +1 -1
- data/lib/Ice/Connection.rb +1 -1
- data/lib/Ice/ConnectionF.rb +1 -1
- data/lib/Ice/Current.rb +1 -1
- data/lib/Ice/Endpoint.rb +1 -1
- data/lib/Ice/EndpointF.rb +1 -1
- data/lib/Ice/EndpointTypes.rb +1 -1
- data/lib/Ice/FacetMap.rb +1 -1
- data/lib/Ice/Identity.rb +1 -1
- data/lib/Ice/ImplicitContext.rb +1 -1
- data/lib/Ice/ImplicitContextF.rb +1 -1
- data/lib/Ice/Instrumentation.rb +1 -1
- data/lib/Ice/InstrumentationF.rb +1 -1
- data/lib/Ice/LocalException.rb +1 -1
- data/lib/Ice/Locator.rb +1 -1
- data/lib/Ice/LocatorF.rb +1 -1
- data/lib/Ice/Logger.rb +1 -1
- data/lib/Ice/LoggerF.rb +1 -1
- data/lib/Ice/Metrics.rb +1 -1
- data/lib/Ice/ObjectAdapter.rb +1 -1
- data/lib/Ice/ObjectAdapterF.rb +1 -1
- data/lib/Ice/ObjectFactory.rb +1 -1
- data/lib/Ice/Plugin.rb +1 -1
- data/lib/Ice/PluginF.rb +1 -1
- data/lib/Ice/Process.rb +1 -1
- data/lib/Ice/ProcessF.rb +1 -1
- data/lib/Ice/Properties.rb +1 -1
- data/lib/Ice/PropertiesAdmin.rb +1 -1
- data/lib/Ice/PropertiesF.rb +1 -1
- data/lib/Ice/RemoteLogger.rb +1 -1
- data/lib/Ice/Router.rb +1 -1
- data/lib/Ice/RouterF.rb +1 -1
- data/lib/Ice/ServantLocator.rb +1 -1
- data/lib/Ice/ServantLocatorF.rb +1 -1
- data/lib/Ice/SliceChecksumDict.rb +1 -1
- data/lib/Ice/ValueFactory.rb +1 -1
- data/lib/Ice/Version.rb +1 -1
- data/lib/IceBox/IceBox.rb +1 -1
- data/lib/IceGrid/Admin.rb +1 -1
- data/lib/IceGrid/Descriptor.rb +1 -1
- data/lib/IceGrid/Exception.rb +1 -1
- data/lib/IceGrid/FileParser.rb +1 -1
- data/lib/IceGrid/PluginFacade.rb +1 -1
- data/lib/IceGrid/Registry.rb +1 -1
- data/lib/IceGrid/Session.rb +1 -1
- data/lib/IceGrid/UserAccountMapper.rb +1 -1
- data/lib/IcePatch2/FileInfo.rb +1 -1
- data/lib/IcePatch2/FileServer.rb +1 -1
- data/lib/IceStorm/IceStorm.rb +1 -1
- data/lib/IceStorm/Metrics.rb +1 -1
- data/slice/Ice/Current.ice +1 -1
- data/slice/Ice/Properties.ice +3 -3
- metadata +3 -3
@@ -21,13 +21,13 @@ class WSAcceptor : public Acceptor, public NativeInfo
|
|
21
21
|
public:
|
22
22
|
|
23
23
|
virtual NativeInfoPtr getNativeInfo();
|
24
|
-
#if defined(ICE_USE_IOCP)
|
24
|
+
#if defined(ICE_USE_IOCP)
|
25
25
|
virtual AsyncInfo* getAsyncInfo(SocketOperation);
|
26
26
|
#endif
|
27
27
|
|
28
28
|
virtual void close();
|
29
29
|
virtual EndpointIPtr listen();
|
30
|
-
#if defined(ICE_USE_IOCP)
|
30
|
+
#if defined(ICE_USE_IOCP)
|
31
31
|
virtual void startAccept();
|
32
32
|
virtual void finishAccept();
|
33
33
|
#endif
|
@@ -128,49 +128,6 @@ Long ice_nlltoh(const Byte* src)
|
|
128
128
|
return v;
|
129
129
|
}
|
130
130
|
|
131
|
-
#if defined(ICE_OS_UWP)
|
132
|
-
Short htons(Short v)
|
133
|
-
{
|
134
|
-
Short result;
|
135
|
-
Byte* dest = reinterpret_cast<Byte*>(&result);
|
136
|
-
|
137
|
-
//
|
138
|
-
// Transfer a short in network (big-endian) order.
|
139
|
-
//
|
140
|
-
#ifdef ICE_BIG_ENDIAN
|
141
|
-
const Byte* src = reinterpret_cast<const Byte*>(&v);
|
142
|
-
*dest++ = *src++;
|
143
|
-
*dest = *src;
|
144
|
-
#else
|
145
|
-
const Byte* src = reinterpret_cast<const Byte*>(&v) + sizeof(Short) - 1;
|
146
|
-
*dest++ = *src--;
|
147
|
-
*dest = *src;
|
148
|
-
#endif
|
149
|
-
return result;
|
150
|
-
}
|
151
|
-
|
152
|
-
Short ntohs(Short value)
|
153
|
-
{
|
154
|
-
const Byte* src = reinterpret_cast<Byte*>(&value);
|
155
|
-
Short v;
|
156
|
-
|
157
|
-
//
|
158
|
-
// Extract a 64-bit integer in network (big-endian) order.
|
159
|
-
//
|
160
|
-
#ifdef ICE_BIG_ENDIAN
|
161
|
-
Byte* dest = reinterpret_cast<Byte*>(&v);
|
162
|
-
*dest++ = *src++;
|
163
|
-
*dest = *src;
|
164
|
-
#else
|
165
|
-
Byte* dest = reinterpret_cast<Byte*>(&v) + sizeof(Short) - 1;
|
166
|
-
*dest-- = *src++;
|
167
|
-
*dest = *src;
|
168
|
-
#endif
|
169
|
-
|
170
|
-
return v;
|
171
|
-
}
|
172
|
-
#endif
|
173
|
-
|
174
131
|
}
|
175
132
|
|
176
133
|
NativeInfoPtr
|
@@ -179,7 +136,7 @@ IceInternal::WSTransceiver::getNativeInfo()
|
|
179
136
|
return _delegate->getNativeInfo();
|
180
137
|
}
|
181
138
|
|
182
|
-
#if defined(ICE_USE_IOCP)
|
139
|
+
#if defined(ICE_USE_IOCP)
|
183
140
|
AsyncInfo*
|
184
141
|
IceInternal::WSTransceiver::getAsyncInfo(SocketOperation status)
|
185
142
|
{
|
@@ -641,7 +598,7 @@ IceInternal::WSTransceiver::read(Buffer& buf)
|
|
641
598
|
return s;
|
642
599
|
}
|
643
600
|
|
644
|
-
#if defined(ICE_USE_IOCP)
|
601
|
+
#if defined(ICE_USE_IOCP)
|
645
602
|
bool
|
646
603
|
IceInternal::WSTransceiver::startWrite(Buffer& buf)
|
647
604
|
{
|
@@ -24,7 +24,7 @@ class WSTransceiver : public Transceiver
|
|
24
24
|
public:
|
25
25
|
|
26
26
|
virtual NativeInfoPtr getNativeInfo();
|
27
|
-
#if defined(ICE_USE_IOCP)
|
27
|
+
#if defined(ICE_USE_IOCP)
|
28
28
|
virtual AsyncInfo* getAsyncInfo(SocketOperation);
|
29
29
|
#endif
|
30
30
|
|
@@ -33,7 +33,7 @@ public:
|
|
33
33
|
virtual void close();
|
34
34
|
virtual SocketOperation write(Buffer&);
|
35
35
|
virtual SocketOperation read(Buffer&);
|
36
|
-
#if defined(ICE_USE_IOCP)
|
36
|
+
#if defined(ICE_USE_IOCP)
|
37
37
|
virtual bool startWrite(Buffer&);
|
38
38
|
virtual void finishWrite(Buffer&);
|
39
39
|
virtual void startRead(Buffer&);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -37,7 +37,7 @@
|
|
37
37
|
# if ICE_INT_VERSION % 100 >= 50
|
38
38
|
# error Beta header file detected
|
39
39
|
# endif
|
40
|
-
# if ICE_INT_VERSION % 100 <
|
40
|
+
# if ICE_INT_VERSION % 100 < 10
|
41
41
|
# error Ice patch level mismatch!
|
42
42
|
# endif
|
43
43
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -42,7 +42,7 @@
|
|
42
42
|
# if ICE_INT_VERSION % 100 >= 50
|
43
43
|
# error Beta header file detected
|
44
44
|
# endif
|
45
|
-
# if ICE_INT_VERSION % 100 <
|
45
|
+
# if ICE_INT_VERSION % 100 < 10
|
46
46
|
# error Ice patch level mismatch!
|
47
47
|
# endif
|
48
48
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -38,7 +38,7 @@
|
|
38
38
|
# if ICE_INT_VERSION % 100 >= 50
|
39
39
|
# error Beta header file detected
|
40
40
|
# endif
|
41
|
-
# if ICE_INT_VERSION % 100 <
|
41
|
+
# if ICE_INT_VERSION % 100 < 10
|
42
42
|
# error Ice patch level mismatch!
|
43
43
|
# endif
|
44
44
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -44,7 +44,7 @@
|
|
44
44
|
# if ICE_INT_VERSION % 100 >= 50
|
45
45
|
# error Beta header file detected
|
46
46
|
# endif
|
47
|
-
# if ICE_INT_VERSION % 100 <
|
47
|
+
# if ICE_INT_VERSION % 100 < 10
|
48
48
|
# error Ice patch level mismatch!
|
49
49
|
# endif
|
50
50
|
#endif
|
@@ -23,7 +23,7 @@ IceSSL::AcceptorI::getNativeInfo()
|
|
23
23
|
return _delegate->getNativeInfo();
|
24
24
|
}
|
25
25
|
|
26
|
-
#if defined(ICE_USE_IOCP)
|
26
|
+
#if defined(ICE_USE_IOCP)
|
27
27
|
IceInternal::AsyncInfo*
|
28
28
|
IceSSL::AcceptorI::getAsyncInfo(IceInternal::SocketOperation status)
|
29
29
|
{
|
@@ -44,7 +44,7 @@ IceSSL::AcceptorI::listen()
|
|
44
44
|
return _endpoint;
|
45
45
|
}
|
46
46
|
|
47
|
-
#if defined(ICE_USE_IOCP)
|
47
|
+
#if defined(ICE_USE_IOCP)
|
48
48
|
void
|
49
49
|
IceSSL::AcceptorI::startAccept()
|
50
50
|
{
|
@@ -20,13 +20,13 @@ class AcceptorI : public IceInternal::Acceptor, public IceInternal::NativeInfo
|
|
20
20
|
public:
|
21
21
|
|
22
22
|
virtual IceInternal::NativeInfoPtr getNativeInfo();
|
23
|
-
#if defined(ICE_USE_IOCP)
|
23
|
+
#if defined(ICE_USE_IOCP)
|
24
24
|
virtual IceInternal::AsyncInfo* getAsyncInfo(IceInternal::SocketOperation);
|
25
25
|
#endif
|
26
26
|
|
27
27
|
virtual void close();
|
28
28
|
virtual IceInternal::EndpointIPtr listen();
|
29
|
-
#if defined(ICE_USE_IOCP)
|
29
|
+
#if defined(ICE_USE_IOCP)
|
30
30
|
virtual void startAccept();
|
31
31
|
virtual void finishAccept();
|
32
32
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -37,7 +37,7 @@
|
|
37
37
|
# if ICE_INT_VERSION % 100 >= 50
|
38
38
|
# error Beta header file detected
|
39
39
|
# endif
|
40
|
-
# if ICE_INT_VERSION % 100 <
|
40
|
+
# if ICE_INT_VERSION % 100 < 10
|
41
41
|
# error Ice patch level mismatch!
|
42
42
|
# endif
|
43
43
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -35,7 +35,7 @@
|
|
35
35
|
# if ICE_INT_VERSION % 100 >= 50
|
36
36
|
# error Beta header file detected
|
37
37
|
# endif
|
38
|
-
# if ICE_INT_VERSION % 100 <
|
38
|
+
# if ICE_INT_VERSION % 100 < 10
|
39
39
|
# error Ice patch level mismatch!
|
40
40
|
# endif
|
41
41
|
#endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
3
|
//
|
4
4
|
//
|
5
|
-
// Ice version 3.7.
|
5
|
+
// Ice version 3.7.10
|
6
6
|
//
|
7
7
|
// <auto-generated>
|
8
8
|
//
|
@@ -37,7 +37,7 @@
|
|
37
37
|
# if ICE_INT_VERSION % 100 >= 50
|
38
38
|
# error Beta header file detected
|
39
39
|
# endif
|
40
|
-
# if ICE_INT_VERSION % 100 <
|
40
|
+
# if ICE_INT_VERSION % 100 < 10
|
41
41
|
# error Ice patch level mismatch!
|
42
42
|
# endif
|
43
43
|
#endif
|
@@ -12,9 +12,7 @@
|
|
12
12
|
#ifdef _WIN32
|
13
13
|
# include <process.h>
|
14
14
|
# include <io.h>
|
15
|
-
#
|
16
|
-
# include <Shlwapi.h>
|
17
|
-
# endif
|
15
|
+
# include <Shlwapi.h>
|
18
16
|
#else
|
19
17
|
# include <unistd.h>
|
20
18
|
# include <dirent.h>
|
@@ -91,13 +89,12 @@ IceUtilInternal::directoryExists(const string& path)
|
|
91
89
|
//
|
92
90
|
// Determine if a directory exists and is empty.
|
93
91
|
//
|
94
|
-
#ifndef ICE_OS_UWP
|
95
92
|
bool
|
96
93
|
IceUtilInternal::isEmptyDirectory(const string& path)
|
97
94
|
{
|
98
|
-
#
|
95
|
+
#ifdef _WIN32
|
99
96
|
return PathIsDirectoryEmptyW(stringToWstring(path, IceUtil::getProcessStringConverter()).c_str());
|
100
|
-
#
|
97
|
+
#else
|
101
98
|
struct dirent* d;
|
102
99
|
DIR* dir = opendir(path.c_str());
|
103
100
|
if(dir)
|
@@ -119,9 +116,8 @@ IceUtilInternal::isEmptyDirectory(const string& path)
|
|
119
116
|
{
|
120
117
|
return false;
|
121
118
|
}
|
122
|
-
# endif
|
123
|
-
}
|
124
119
|
#endif
|
120
|
+
}
|
125
121
|
|
126
122
|
//
|
127
123
|
// Determine if a regular file exists.
|
@@ -240,7 +236,6 @@ IceUtilInternal::open(const string& path, int flags)
|
|
240
236
|
}
|
241
237
|
}
|
242
238
|
|
243
|
-
#ifndef ICE_OS_UWP
|
244
239
|
int
|
245
240
|
IceUtilInternal::getcwd(string& cwd)
|
246
241
|
{
|
@@ -256,7 +251,6 @@ IceUtilInternal::getcwd(string& cwd)
|
|
256
251
|
cwd = wstringToString(cwdbuf, IceUtil::getProcessStringConverter());
|
257
252
|
return 0;
|
258
253
|
}
|
259
|
-
#endif
|
260
254
|
|
261
255
|
int
|
262
256
|
IceUtilInternal::unlink(const string& path)
|
@@ -286,15 +280,8 @@ IceUtilInternal::FileLock::FileLock(const std::string& path) :
|
|
286
280
|
// Don't need to use a wide string converter, the wide string is directly passed
|
287
281
|
// to Windows API.
|
288
282
|
//
|
289
|
-
#ifndef ICE_OS_UWP
|
290
283
|
_fd = ::CreateFileW(stringToWstring(path, IceUtil::getProcessStringConverter()).c_str(),
|
291
284
|
GENERIC_WRITE, 0, ICE_NULLPTR, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, ICE_NULLPTR);
|
292
|
-
#else
|
293
|
-
CREATEFILE2_EXTENDED_PARAMETERS params;
|
294
|
-
params.dwFileAttributes = FILE_ATTRIBUTE_NORMAL;
|
295
|
-
_fd = ::CreateFile2(stringToWstring(path, IceUtil::getProcessStringConverter()).c_str(),
|
296
|
-
GENERIC_WRITE, 0, OPEN_ALWAYS, ¶ms);
|
297
|
-
#endif
|
298
285
|
_path = path;
|
299
286
|
|
300
287
|
if(_fd == INVALID_HANDLE_VALUE)
|
@@ -28,11 +28,7 @@ IceUtil::RecMutex::RecMutex(const IceUtil::MutexProtocol protocol) :
|
|
28
28
|
void
|
29
29
|
IceUtil::RecMutex::init(const MutexProtocol)
|
30
30
|
{
|
31
|
-
# ifdef ICE_OS_UWP
|
32
|
-
InitializeCriticalSectionEx(&_mutex, 0, 0);
|
33
|
-
# else
|
34
31
|
InitializeCriticalSection(&_mutex);
|
35
|
-
# endif
|
36
32
|
}
|
37
33
|
|
38
34
|
IceUtil::RecMutex::~RecMutex()
|
@@ -812,48 +812,6 @@ IceUtilInternal::errorToString(int error, LPCVOID source)
|
|
812
812
|
{
|
813
813
|
if(error < WSABASEERR)
|
814
814
|
{
|
815
|
-
#ifdef ICE_OS_UWP
|
816
|
-
|
817
|
-
wstring lpMsgBuf(256, wchar_t());
|
818
|
-
DWORD stored = 0;
|
819
|
-
|
820
|
-
while(stored == 0)
|
821
|
-
{
|
822
|
-
stored = FormatMessageW(
|
823
|
-
FORMAT_MESSAGE_FROM_SYSTEM |
|
824
|
-
FORMAT_MESSAGE_IGNORE_INSERTS |
|
825
|
-
(source != ICE_NULLPTR ? FORMAT_MESSAGE_FROM_HMODULE : 0),
|
826
|
-
source,
|
827
|
-
error,
|
828
|
-
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
|
829
|
-
const_cast<wchar_t*>(lpMsgBuf.data()),
|
830
|
-
static_cast<int>(lpMsgBuf.size()),
|
831
|
-
ICE_NULLPTR);
|
832
|
-
|
833
|
-
if(stored == 0)
|
834
|
-
{
|
835
|
-
DWORD err = GetLastError();
|
836
|
-
if(err == ERROR_INSUFFICIENT_BUFFER)
|
837
|
-
{
|
838
|
-
if(lpMsgBuf.size() >= 65536)
|
839
|
-
{
|
840
|
-
break; // already at the max size
|
841
|
-
}
|
842
|
-
else
|
843
|
-
{
|
844
|
-
lpMsgBuf.resize(min<size_t>(lpMsgBuf.size() * 4, 65536));
|
845
|
-
}
|
846
|
-
}
|
847
|
-
else
|
848
|
-
{
|
849
|
-
break;
|
850
|
-
}
|
851
|
-
}
|
852
|
-
}
|
853
|
-
|
854
|
-
LPWSTR msg = const_cast<wchar_t*>(lpMsgBuf.data());
|
855
|
-
|
856
|
-
#else
|
857
815
|
LPWSTR msg = 0;
|
858
816
|
|
859
817
|
DWORD stored = FormatMessageW(
|
@@ -867,7 +825,6 @@ IceUtilInternal::errorToString(int error, LPCVOID source)
|
|
867
825
|
reinterpret_cast<LPWSTR>(&msg),
|
868
826
|
0,
|
869
827
|
ICE_NULLPTR);
|
870
|
-
#endif
|
871
828
|
|
872
829
|
if(stored > 0)
|
873
830
|
{
|
@@ -877,12 +834,10 @@ IceUtilInternal::errorToString(int error, LPCVOID source)
|
|
877
834
|
{
|
878
835
|
result = result.substr(0, result.length() - 2);
|
879
836
|
}
|
880
|
-
#ifndef ICE_OS_UWP
|
881
837
|
if(msg)
|
882
838
|
{
|
883
839
|
LocalFree(msg);
|
884
840
|
}
|
885
|
-
#endif
|
886
841
|
return wstringToString(result, getProcessStringConverter(), getProcessWstringConverter());
|
887
842
|
}
|
888
843
|
else
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
using namespace std;
|
22
22
|
|
23
|
-
#
|
23
|
+
#ifndef _WIN32
|
24
24
|
|
25
25
|
namespace
|
26
26
|
{
|
@@ -41,11 +41,7 @@ public:
|
|
41
41
|
|
42
42
|
PidInitializer()
|
43
43
|
{
|
44
|
-
#ifndef _WIN32
|
45
44
|
pid_t p = getpid();
|
46
|
-
#else
|
47
|
-
int p = GetCurrentProcessId();
|
48
|
-
#endif
|
49
45
|
myPid[0] = (p >> 8) & 0x7F;
|
50
46
|
myPid[1] = static_cast<char>(p & 0xFF);
|
51
47
|
}
|
@@ -87,7 +83,7 @@ inline void bytesToHex(unsigned char* bytes, size_t len, char*& hexBuffer)
|
|
87
83
|
string
|
88
84
|
IceUtil::generateUUID()
|
89
85
|
{
|
90
|
-
#if defined(_WIN32)
|
86
|
+
#if defined(_WIN32)
|
91
87
|
|
92
88
|
UUID uuid;
|
93
89
|
RPC_STATUS ret = UuidCreate(&uuid);
|
@@ -54,7 +54,7 @@
|
|
54
54
|
//
|
55
55
|
// The Slice compilers don't retrieve the exception stack traces so we don't need the DbgHelp calls.
|
56
56
|
//
|
57
|
-
#if defined(_WIN32) && !defined(
|
57
|
+
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(ICE_BUILDING_SLICE_COMPILERS)
|
58
58
|
# define ICE_DBGHELP
|
59
59
|
# if defined(_MSC_VER) && (_MSC_VER >= 1700)
|
60
60
|
# define DBGHELP_TRANSLATE_TCHAR
|
@@ -669,6 +669,28 @@ Slice::computeSerialVersionUUID(const ExceptionPtr& p)
|
|
669
669
|
return hashCode;
|
670
670
|
}
|
671
671
|
|
672
|
+
bool
|
673
|
+
Slice::isValidMethodParameterList(const DataMemberList& members, int additionalUnits)
|
674
|
+
{
|
675
|
+
// The maximum length of a method parameter list is 255 units, including the implicit 'this' parameter.
|
676
|
+
// Each parameter is 1 unit, except for long and double parameters, which are 2 units.
|
677
|
+
// Start the length at 1 to account for the implicit 'this' parameter (plus any additional units).
|
678
|
+
int length = 1 + additionalUnits;
|
679
|
+
for(DataMemberList::const_iterator p = members.begin(); p != members.end(); ++p)
|
680
|
+
{
|
681
|
+
BuiltinPtr builtin = BuiltinPtr::dynamicCast((*p)->type());
|
682
|
+
if(builtin && (builtin->kind() == Builtin::KindLong || builtin->kind() == Builtin::KindDouble))
|
683
|
+
{
|
684
|
+
length += 2;
|
685
|
+
}
|
686
|
+
else
|
687
|
+
{
|
688
|
+
length++;
|
689
|
+
}
|
690
|
+
}
|
691
|
+
return length <= 255;
|
692
|
+
}
|
693
|
+
|
672
694
|
Slice::JavaOutput::JavaOutput()
|
673
695
|
{
|
674
696
|
}
|
@@ -29,6 +29,15 @@ computeSerialVersionUUID(const ExceptionPtr&);
|
|
29
29
|
long
|
30
30
|
computeSerialVersionUUID(const StructPtr&);
|
31
31
|
|
32
|
+
//
|
33
|
+
// Returns true if we can generate a method from the given data member list. A Java method
|
34
|
+
// can have a maximum of 255 parameters (including the implicit 'this') where each parameter
|
35
|
+
// is counted as 1 unit, except for long and double which are counted as 2 units.
|
36
|
+
// See https://docs.oracle.com/javase/specs/jvms/se20/html/jvms-4.html#jvms-4.3.3
|
37
|
+
//
|
38
|
+
bool
|
39
|
+
isValidMethodParameterList(const DataMemberList&, int additionalUnits = 0);
|
40
|
+
|
32
41
|
class JavaOutput : public ::IceUtilInternal::Output
|
33
42
|
{
|
34
43
|
public:
|
data/ext/ice/mcpp/system.c
CHANGED
data/ice.gemspec
CHANGED
data/lib/Glacier2/Metrics.rb
CHANGED
data/lib/Glacier2/Router.rb
CHANGED
data/lib/Glacier2/RouterF.rb
CHANGED
data/lib/Glacier2/SSLInfo.rb
CHANGED
data/lib/Glacier2/Session.rb
CHANGED
data/lib/Ice/BuiltinSequences.rb
CHANGED
data/lib/Ice/Communicator.rb
CHANGED
data/lib/Ice/CommunicatorF.rb
CHANGED
data/lib/Ice/Connection.rb
CHANGED
data/lib/Ice/ConnectionF.rb
CHANGED