mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
Merge pull request #1992 from evoskuil/master
Problem: name confl from windows.h, draft API decl in pch.
This commit is contained in:
@@ -131,6 +131,8 @@ src_libzmq_la_SOURCES = \
|
|||||||
src/poller.hpp \
|
src/poller.hpp \
|
||||||
src/poller_base.cpp \
|
src/poller_base.cpp \
|
||||||
src/poller_base.hpp \
|
src/poller_base.hpp \
|
||||||
|
src/precompiled.cpp \
|
||||||
|
src/precompiled.hpp \
|
||||||
src/proxy.cpp \
|
src/proxy.cpp \
|
||||||
src/proxy.hpp \
|
src/proxy.hpp \
|
||||||
src/pub.cpp \
|
src/pub.cpp \
|
||||||
@@ -234,7 +236,8 @@ src_libzmq_la_SOURCES = \
|
|||||||
src/decoder_allocators.cpp \
|
src/decoder_allocators.cpp \
|
||||||
src/decoder_allocators.hpp \
|
src/decoder_allocators.hpp \
|
||||||
src/socket_poller.cpp \
|
src/socket_poller.cpp \
|
||||||
src/socket_poller.hpp
|
src/socket_poller.hpp \
|
||||||
|
src/zmq_draft.h
|
||||||
|
|
||||||
if USE_TWEETNACL
|
if USE_TWEETNACL
|
||||||
src_libzmq_la_SOURCES += \
|
src_libzmq_la_SOURCES += \
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
<Import Project="$(ProjectDir)..\..\vs2015\$(ProjectName)\$(ProjectName).props" />
|
<Import Project="$(ProjectDir)..\..\vs2015\$(ProjectName)\$(ProjectName).props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\..\..\src\zmq_draft.h" />
|
||||||
<ClInclude Include="..\..\platform.hpp" />
|
<ClInclude Include="..\..\platform.hpp" />
|
||||||
<ClInclude Include="..\..\resource.h" />
|
<ClInclude Include="..\..\resource.h" />
|
||||||
<ClInclude Include="..\..\..\..\include\zmq.h" />
|
<ClInclude Include="..\..\..\..\include\zmq.h" />
|
||||||
|
|||||||
@@ -567,6 +567,9 @@
|
|||||||
<ClInclude Include="..\..\..\..\src\tweetnacl.h">
|
<ClInclude Include="..\..\..\..\src\tweetnacl.h">
|
||||||
<Filter>src\include</Filter>
|
<Filter>src\include</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\..\src\zmq_draft.h">
|
||||||
|
<Filter>src\include</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="include">
|
<Filter Include="include">
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ ECHO NOTE: Ignore warnings not applicable to native code: "Issue: Assembly outsi
|
|||||||
ECHO.
|
ECHO.
|
||||||
ECHO Completed nuget packaging build. The package is in the following folder:
|
ECHO Completed nuget packaging build. The package is in the following folder:
|
||||||
CD
|
CD
|
||||||
|
PAUSE
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- These values are populated into the package.gsl templates by package.bat. -->
|
<!-- These values are populated into the package.gsl templates by package.bat. -->
|
||||||
<!-- The target attribute controls path and file name only, id controls package naming. -->
|
<!-- The target attribute controls path and file name only, id controls package naming. -->
|
||||||
<package id="libzmq_vc120" target="libzmq" version = "4.2.1.0" pathversion="4_2_1_0" platformtoolset="v120">
|
<package id="libzmq_vc120" target="libzmq" version = "4.2.2.0" pathversion="4_2_2_0" platformtoolset="v120">
|
||||||
<!--<dependency id="libsodium_vc120" version="1.0.0.0" />-->
|
<!--<dependency id="libsodium_vc120" version="1.0.0.0" />-->
|
||||||
</package>
|
</package>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
|
||||||
<metadata minClientVersion="2.5">
|
<metadata minClientVersion="2.5">
|
||||||
<id>libzmq_vc120</id>
|
<id>libzmq_vc120</id>
|
||||||
<version>4.2.1.0</version>
|
<version>4.2.2.0</version>
|
||||||
<title>libzmq_vc120</title>
|
<title>libzmq_vc120</title>
|
||||||
<authors>libzmq contributors</authors>
|
<authors>libzmq contributors</authors>
|
||||||
<owners>Eric Voskuil</owners>
|
<owners>Eric Voskuil</owners>
|
||||||
@@ -43,52 +43,52 @@
|
|||||||
<!-- libraries -->
|
<!-- libraries -->
|
||||||
|
|
||||||
<!-- x86 Dynamic libraries (.dll) -->
|
<!-- x86 Dynamic libraries (.dll) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x86-v120-mt-4_2_1_0.dll" />
|
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x86-v120-mt-4_2_2_0.dll" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_1_0.dll" />
|
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_2_0.dll" />
|
||||||
|
|
||||||
<!-- x86 Debugging symbols (.pdb) -->
|
<!-- x86 Debugging symbols (.pdb) -->
|
||||||
<!--<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x86-v120-mt-4_2_1_0.pdb" />-->
|
<!--<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x86-v120-mt-4_2_2_0.pdb" />-->
|
||||||
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_1_0.pdb" />
|
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_2_0.pdb" />
|
||||||
|
|
||||||
<!-- x86 Import libraries (.imp.lib) -->
|
<!-- x86 Import libraries (.imp.lib) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-4_2_1_0.imp.lib" />
|
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-4_2_2_0.imp.lib" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_1_0.imp.lib" />
|
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_2_0.imp.lib" />
|
||||||
|
|
||||||
<!-- x86 Export libraries (.exp) -->
|
<!-- x86 Export libraries (.exp) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x86-v120-mt-4_2_1_0.exp" />
|
<file src="..\..\bin\Win32\Release\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x86-v120-mt-4_2_2_0.exp" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_1_0.exp" />
|
<file src="..\..\bin\Win32\Debug\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x86-v120-mt-gd-4_2_2_0.exp" />
|
||||||
|
|
||||||
<!-- x86 Static libraries (.lib) -->
|
<!-- x86 Static libraries (.lib) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\static\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-s-4_2_1_0.lib" />
|
<file src="..\..\bin\Win32\Release\v120\static\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-s-4_2_2_0.lib" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\static\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-sgd-4_2_1_0.lib" />
|
<file src="..\..\bin\Win32\Debug\v120\static\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-sgd-4_2_2_0.lib" />
|
||||||
|
|
||||||
<!-- x86 Static link time code generation libraries (.ltcg.lib) -->
|
<!-- x86 Static link time code generation libraries (.ltcg.lib) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-s-4_2_1_0.ltcg.lib" />
|
<file src="..\..\bin\Win32\Release\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-s-4_2_2_0.ltcg.lib" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-sgd-4_2_1_0.ltcg.lib" />
|
<file src="..\..\bin\Win32\Debug\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x86-v120-mt-sgd-4_2_2_0.ltcg.lib" />
|
||||||
|
|
||||||
<!-- x64 Dynamic libraries (.dll) -->
|
<!-- x64 Dynamic libraries (.dll) -->
|
||||||
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x64-v120-mt-4_2_1_0.dll" />
|
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x64-v120-mt-4_2_2_0.dll" />
|
||||||
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_1_0.dll" />
|
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.dll" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_2_0.dll" />
|
||||||
|
|
||||||
<!-- x64 Debugging symbols (.pdb) -->
|
<!-- x64 Debugging symbols (.pdb) -->
|
||||||
<!--<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x64-v120-mt-4_2_1_0.pdb" />-->
|
<!--<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x64-v120-mt-4_2_2_0.pdb" />-->
|
||||||
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_1_0.pdb" />
|
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.pdb" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_2_0.pdb" />
|
||||||
|
|
||||||
<!-- x64 Import libraries (.imp.lib) -->
|
<!-- x64 Import libraries (.imp.lib) -->
|
||||||
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-4_2_1_0.imp.lib" />
|
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-4_2_2_0.imp.lib" />
|
||||||
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_1_0.imp.lib" />
|
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_2_0.imp.lib" />
|
||||||
|
|
||||||
<!-- x64 Export libraries (.exp) -->
|
<!-- x64 Export libraries (.exp) -->
|
||||||
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x64-v120-mt-4_2_1_0.exp" />
|
<file src="..\..\bin\x64\Release\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x64-v120-mt-4_2_2_0.exp" />
|
||||||
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_1_0.exp" />
|
<file src="..\..\bin\x64\Debug\v120\dynamic\libzmq.exp" target="build\native\bin\libzmq-x64-v120-mt-gd-4_2_2_0.exp" />
|
||||||
|
|
||||||
<!-- x64 Static libraries (.lib) -->
|
<!-- x64 Static libraries (.lib) -->
|
||||||
<file src="..\..\bin\x64\Release\v120\static\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-s-4_2_1_0.lib" />
|
<file src="..\..\bin\x64\Release\v120\static\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-s-4_2_2_0.lib" />
|
||||||
<file src="..\..\bin\x64\Debug\v120\static\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-sgd-4_2_1_0.lib" />
|
<file src="..\..\bin\x64\Debug\v120\static\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-sgd-4_2_2_0.lib" />
|
||||||
|
|
||||||
<!-- x64 Static link time code generation libraries (.ltcg.lib) -->
|
<!-- x64 Static link time code generation libraries (.ltcg.lib) -->
|
||||||
<file src="..\..\bin\Win32\Release\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-s-4_2_1_0.ltcg.lib" />
|
<file src="..\..\bin\Win32\Release\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-s-4_2_2_0.ltcg.lib" />
|
||||||
<file src="..\..\bin\Win32\Debug\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-sgd-4_2_1_0.ltcg.lib" />
|
<file src="..\..\bin\Win32\Debug\v120\ltcg\libzmq.lib" target="build\native\bin\libzmq-x64-v120-mt-sgd-4_2_2_0.ltcg.lib" />
|
||||||
</files>
|
</files>
|
||||||
<!--
|
<!--
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|||||||
@@ -31,66 +31,66 @@
|
|||||||
<!-- static libraries -->
|
<!-- static libraries -->
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-s-4_2_1_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-s-4_2_2_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-sgd-4_2_1_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-sgd-4_2_2_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-s-4_2_1_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-s-4_2_2_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'static' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-sgd-4_2_1_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-sgd-4_2_2_0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<!-- static ltcg libraries -->
|
<!-- static ltcg libraries -->
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-s-4_2_1_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-s-4_2_2_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-sgd-4_2_1_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-sgd-4_2_2_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-s-4_2_1_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-s-4_2_2_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'ltcg' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-sgd-4_2_1_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-sgd-4_2_2_0.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<!-- dynamic import libraries -->
|
<!-- dynamic import libraries -->
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-4_2_1_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-4_2_2_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x86-v120-mt-gd-4_2_1_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x86-v120-mt-gd-4_2_2_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-4_2_1_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-4_2_2_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1">
|
<ItemDefinitionGroup Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1">
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>libzmq-x64-v120-mt-gd-4_2_1_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>libzmq-x64-v120-mt-gd-4_2_2_0.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
@@ -99,26 +99,26 @@
|
|||||||
<Target Name="libzmq_AfterBuild_Win32_v120_Dynamic_Release"
|
<Target Name="libzmq_AfterBuild_Win32_v120_Dynamic_Release"
|
||||||
Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1"
|
Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1"
|
||||||
AfterTargets="libzmq_AfterBuild">
|
AfterTargets="libzmq_AfterBuild">
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-4_2_1_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-4_2_2_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
||||||
<!--<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-4_2_1_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />-->
|
<!--<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-4_2_2_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />-->
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="libzmq_AfterBuild_Win32_v120_Dynamic_Debug"
|
<Target Name="libzmq_AfterBuild_Win32_v120_Dynamic_Debug"
|
||||||
Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1"
|
Condition="'$(Platform)' == 'Win32' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1"
|
||||||
AfterTargets="libzmq_AfterBuild">
|
AfterTargets="libzmq_AfterBuild">
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-gd-4_2_1_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-gd-4_2_2_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-gd-4_2_1_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x86-v120-mt-gd-4_2_2_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="libzmq_AfterBuild_x64_v120_Dynamic_Release"
|
<Target Name="libzmq_AfterBuild_x64_v120_Dynamic_Release"
|
||||||
Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1"
|
Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Release')) != -1"
|
||||||
AfterTargets="libzmq_AfterBuild">
|
AfterTargets="libzmq_AfterBuild">
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-4_2_1_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-4_2_2_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
||||||
<!--<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-4_2_1_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />-->
|
<!--<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-4_2_2_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />-->
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="libzmq_AfterBuild_x64_v120_Dynamic_Debug"
|
<Target Name="libzmq_AfterBuild_x64_v120_Dynamic_Debug"
|
||||||
Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1"
|
Condition="'$(Platform)' == 'x64' And ('$(PlatformToolset)' == 'v120' Or '$(PlatformToolset)' == 'CTP_Nov2013') And '$(Linkage-libzmq)' == 'dynamic' And $(Configuration.IndexOf('Debug')) != -1"
|
||||||
AfterTargets="libzmq_AfterBuild">
|
AfterTargets="libzmq_AfterBuild">
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-gd-4_2_1_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-gd-4_2_2_0.dll" DestinationFiles="$(TargetDir)libzmq.dll" SkipUnchangedFiles="true" />
|
||||||
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-gd-4_2_1_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)bin\libzmq-x64-v120-mt-gd-4_2_2_0.pdb" DestinationFiles="$(TargetDir)libzmq.pdb" SkipUnchangedFiles="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "address.hpp"
|
#include "address.hpp"
|
||||||
#include "ctx.hpp"
|
#include "ctx.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#define __ZMQ_ATOMIC_COUNTER_HPP_INCLUDED__
|
#define __ZMQ_ATOMIC_COUNTER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_FORCE_MUTEXES
|
#if defined ZMQ_FORCE_MUTEXES
|
||||||
#define ZMQ_ATOMIC_COUNTER_MUTEX
|
#define ZMQ_ATOMIC_COUNTER_MUTEX
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __ZMQ_ATOMIC_PTR_HPP_INCLUDED__
|
#ifndef __ZMQ_ATOMIC_PTR_HPP_INCLUDED__
|
||||||
#define __ZMQ_ATOMIC_PTR_HPP_INCLUDED__
|
#define __ZMQ_ATOMIC_PTR_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_FORCE_MUTEXES
|
#if defined ZMQ_FORCE_MUTEXES
|
||||||
#define ZMQ_ATOMIC_PTR_MUTEX
|
#define ZMQ_ATOMIC_PTR_MUTEX
|
||||||
#elif defined ZMQ_HAVE_ATOMIC_INTRINSICS
|
#elif defined ZMQ_HAVE_ATOMIC_INTRINSICS
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "clock.hpp"
|
#include "clock.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "likely.hpp"
|
#include "likely.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#ifndef __ZMQ_CONDITON_VARIABLE_HPP_INCLUDED__
|
#ifndef __ZMQ_CONDITON_VARIABLE_HPP_INCLUDED__
|
||||||
#define __ZMQ_CONDITON_VARIABLE_HPP_INCLUDED__
|
#define __ZMQ_CONDITON_VARIABLE_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "clock.hpp"
|
#include "clock.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "mutex.hpp"
|
#include "mutex.hpp"
|
||||||
|
|||||||
@@ -29,10 +29,7 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -29,14 +29,9 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_CURVE
|
#ifdef ZMQ_HAVE_CURVE
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "msg.hpp"
|
#include "msg.hpp"
|
||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#ifdef ZMQ_HAVE_CURVE
|
#ifdef ZMQ_HAVE_CURVE
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined (ZMQ_USE_TWEETNACL)
|
#if defined (ZMQ_USE_TWEETNACL)
|
||||||
# include "tweetnacl.h"
|
# include "tweetnacl.h"
|
||||||
#elif defined (ZMQ_USE_LIBSODIUM)
|
#elif defined (ZMQ_USE_LIBSODIUM)
|
||||||
|
|||||||
@@ -29,14 +29,9 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_CURVE
|
#ifdef ZMQ_HAVE_CURVE
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "msg.hpp"
|
#include "msg.hpp"
|
||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#ifdef ZMQ_HAVE_CURVE
|
#ifdef ZMQ_HAVE_CURVE
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined (ZMQ_USE_TWEETNACL)
|
#if defined (ZMQ_USE_TWEETNACL)
|
||||||
# include "tweetnacl.h"
|
# include "tweetnacl.h"
|
||||||
#elif defined (ZMQ_USE_LIBSODIUM)
|
#elif defined (ZMQ_USE_LIBSODIUM)
|
||||||
|
|||||||
@@ -30,13 +30,6 @@
|
|||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../include/zmq.h"
|
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "dish.hpp"
|
#include "dish.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|||||||
@@ -40,18 +40,13 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "likely.hpp"
|
#include "likely.hpp"
|
||||||
|
|
||||||
// 0MQ-specific error codes are defined in zmq.h
|
// 0MQ-specific error codes are defined in zmq.h
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
// EPROTO is not used by OpenBSD and maybe other platforms.
|
// EPROTO is not used by OpenBSD and maybe other platforms.
|
||||||
#ifndef EPROTO
|
#ifndef EPROTO
|
||||||
|
|||||||
@@ -30,12 +30,6 @@
|
|||||||
#ifndef __ZMQ_FD_HPP_INCLUDED__
|
#ifndef __ZMQ_FD_HPP_INCLUDED__
|
||||||
#define __ZMQ_FD_HPP_INCLUDED__
|
#define __ZMQ_FD_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
{
|
{
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifdef ZMQ_HAVE_WINDOWS
|
||||||
|
|||||||
@@ -28,14 +28,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBGSSAPI_KRB5
|
#ifdef HAVE_LIBGSSAPI_KRB5
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@@ -28,14 +28,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBGSSAPI_KRB5
|
#ifdef HAVE_LIBGSSAPI_KRB5
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __ZMQ_GSSAPI_MECHANISM_BASE_HPP_INCLUDED__
|
#ifndef __ZMQ_GSSAPI_MECHANISM_BASE_HPP_INCLUDED__
|
||||||
#define __ZMQ_GSSAPI_MECHANISM_BASE_HPP_INCLUDED__
|
#define __ZMQ_GSSAPI_MECHANISM_BASE_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBGSSAPI_KRB5
|
#ifdef HAVE_LIBGSSAPI_KRB5
|
||||||
|
|
||||||
#if HAVE_GSSAPI_GSSAPI_GENERIC_H
|
#if HAVE_GSSAPI_GSSAPI_GENERIC_H
|
||||||
|
|||||||
@@ -28,14 +28,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBGSSAPI_KRB5
|
#ifdef HAVE_LIBGSSAPI_KRB5
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@@ -28,11 +28,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "io_thread.hpp"
|
#include "io_thread.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ctx.hpp"
|
#include "ctx.hpp"
|
||||||
|
|
||||||
|
|||||||
@@ -30,11 +30,8 @@
|
|||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
|
|
||||||
#include "stream_engine.hpp"
|
#include "stream_engine.hpp"
|
||||||
#include "io_thread.hpp"
|
#include "io_thread.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "random.hpp"
|
#include "random.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __IPC_CONNECTER_HPP_INCLUDED__
|
#ifndef __IPC_CONNECTER_HPP_INCLUDED__
|
||||||
#define __IPC_CONNECTER_HPP_INCLUDED__
|
#define __IPC_CONNECTER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
||||||
|
|
||||||
#include "fd.hpp"
|
#include "fd.hpp"
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __ZMQ_IPC_LISTENER_HPP_INCLUDED__
|
#ifndef __ZMQ_IPC_LISTENER_HPP_INCLUDED__
|
||||||
#define __ZMQ_IPC_LISTENER_HPP_INCLUDED__
|
#define __ZMQ_IPC_LISTENER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "signaler.hpp"
|
#include "signaler.hpp"
|
||||||
#include "fd.hpp"
|
#include "fd.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "signaler.hpp"
|
#include "signaler.hpp"
|
||||||
#include "fd.hpp"
|
#include "fd.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "msg.hpp"
|
#include "msg.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -33,14 +33,9 @@
|
|||||||
#include <new>
|
#include <new>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "macros.hpp"
|
|
||||||
#include "platform.hpp"
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "pipe.hpp"
|
#include "pipe.hpp"
|
||||||
|
#include "macros.hpp"
|
||||||
#include "mtrie.hpp"
|
#include "mtrie.hpp"
|
||||||
|
|
||||||
zmq::mtrie_t::mtrie_t () :
|
zmq::mtrie_t::mtrie_t () :
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#ifndef __ZMQ_MUTEX_HPP_INCLUDED__
|
#ifndef __ZMQ_MUTEX_HPP_INCLUDED__
|
||||||
#define __ZMQ_MUTEX_HPP_INCLUDED__
|
#define __ZMQ_MUTEX_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|
||||||
// Mutex class encapsulates OS mutex in a platform-independent way.
|
// Mutex class encapsulates OS mutex in a platform-independent way.
|
||||||
|
|||||||
@@ -28,10 +28,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "tcp_address.hpp"
|
#include "tcp_address.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED
|
#if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -29,16 +29,11 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OPENPGM
|
#if defined ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "pgm_receiver.hpp"
|
#include "pgm_receiver.hpp"
|
||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
#include "v1_decoder.hpp"
|
#include "v1_decoder.hpp"
|
||||||
|
|||||||
@@ -30,14 +30,8 @@
|
|||||||
#ifndef __ZMQ_PGM_RECEIVER_HPP_INCLUDED__
|
#ifndef __ZMQ_PGM_RECEIVER_HPP_INCLUDED__
|
||||||
#define __ZMQ_PGM_RECEIVER_HPP_INCLUDED__
|
#define __ZMQ_PGM_RECEIVER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OPENPGM
|
#if defined ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|||||||
@@ -28,14 +28,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OPENPGM
|
#if defined ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "io_thread.hpp"
|
#include "io_thread.hpp"
|
||||||
|
|||||||
@@ -30,14 +30,8 @@
|
|||||||
#ifndef __ZMQ_PGM_SENDER_HPP_INCLUDED__
|
#ifndef __ZMQ_PGM_SENDER_HPP_INCLUDED__
|
||||||
#define __ZMQ_PGM_SENDER_HPP_INCLUDED__
|
#define __ZMQ_PGM_SENDER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OPENPGM
|
#if defined ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "io_object.hpp"
|
#include "io_object.hpp"
|
||||||
#include "i_engine.hpp"
|
#include "i_engine.hpp"
|
||||||
|
|||||||
@@ -28,14 +28,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_OPENPGM
|
#ifdef ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_LINUX
|
#ifdef ZMQ_HAVE_LINUX
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -30,12 +30,9 @@
|
|||||||
#ifndef __PGM_SOCKET_HPP_INCLUDED__
|
#ifndef __PGM_SOCKET_HPP_INCLUDED__
|
||||||
#define __PGM_SOCKET_HPP_INCLUDED__
|
#define __PGM_SOCKET_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_OPENPGM
|
#if defined ZMQ_HAVE_OPENPGM
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifdef ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#define __PGM_WININT_H__
|
#define __PGM_WININT_H__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -29,10 +29,6 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __ZMQ_POLLER_HPP_INCLUDED__
|
#ifndef __ZMQ_POLLER_HPP_INCLUDED__
|
||||||
#define __ZMQ_POLLER_HPP_INCLUDED__
|
#define __ZMQ_POLLER_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_USE_KQUEUE + defined ZMQ_USE_EPOLL \
|
#if defined ZMQ_USE_KQUEUE + defined ZMQ_USE_EPOLL \
|
||||||
+ defined ZMQ_USE_DEVPOLL + defined ZMQ_USE_POLL \
|
+ defined ZMQ_USE_DEVPOLL + defined ZMQ_USE_POLL \
|
||||||
+ defined ZMQ_USE_SELECT > 1
|
+ defined ZMQ_USE_SELECT > 1
|
||||||
|
|||||||
@@ -30,9 +30,21 @@
|
|||||||
#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
||||||
#define __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
#define __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "platform.hpp"
|
||||||
|
|
||||||
|
// This must be included before any windows headers are compiled.
|
||||||
|
#if defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
#include "windows.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// 0MQ definitions and exported functions
|
||||||
|
#include "../include/zmq.h"
|
||||||
|
|
||||||
|
// 0MQ DRAFT definitions and exported functions
|
||||||
|
#include "zmq_draft.h"
|
||||||
|
|
||||||
|
// TODO: expand pch implementation to non-windows builds.
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
// standard C headers
|
// standard C headers
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -104,88 +116,4 @@
|
|||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
||||||
// 0MQ definitions and exported functions
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/* These functions are DRAFT and disabled in stable releases, and subject to */
|
|
||||||
/* change at ANY time until declared stable. */
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
#ifndef ZMQ_BUILD_DRAFT_API
|
|
||||||
|
|
||||||
/* DRAFT Socket types. */
|
|
||||||
#define ZMQ_SERVER 12
|
|
||||||
#define ZMQ_CLIENT 13
|
|
||||||
#define ZMQ_RADIO 14
|
|
||||||
#define ZMQ_DISH 15
|
|
||||||
#define ZMQ_GATHER 16
|
|
||||||
#define ZMQ_SCATTER 17
|
|
||||||
|
|
||||||
/* DRAFT Socket methods. */
|
|
||||||
int zmq_join (void *s, const char *group);
|
|
||||||
int zmq_leave (void *s, const char *group);
|
|
||||||
|
|
||||||
/* DRAFT Msg methods. */
|
|
||||||
int zmq_msg_set_routing_id(zmq_msg_t *msg, uint32_t routing_id);
|
|
||||||
uint32_t zmq_msg_routing_id(zmq_msg_t *msg);
|
|
||||||
int zmq_msg_set_group(zmq_msg_t *msg, const char *group);
|
|
||||||
const char *zmq_msg_group(zmq_msg_t *msg);
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/* Poller polling on sockets,fd and thread-safe sockets */
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
#define ZMQ_HAVE_POLLER
|
|
||||||
|
|
||||||
typedef struct zmq_poller_event_t
|
|
||||||
{
|
|
||||||
void *socket;
|
|
||||||
#if defined _WIN32
|
|
||||||
SOCKET fd;
|
|
||||||
#else
|
|
||||||
int fd;
|
|
||||||
#endif
|
|
||||||
void *user_data;
|
|
||||||
short events;
|
|
||||||
} zmq_poller_event_t;
|
|
||||||
|
|
||||||
void *zmq_poller_new (void);
|
|
||||||
int zmq_poller_destroy (void **poller_p);
|
|
||||||
int zmq_poller_add (void *poller, void *socket, void *user_data, short events);
|
|
||||||
int zmq_poller_modify (void *poller, void *socket, short events);
|
|
||||||
int zmq_poller_remove (void *poller, void *socket);
|
|
||||||
int zmq_poller_wait (void *poller, zmq_poller_event_t *event, long timeout);
|
|
||||||
|
|
||||||
#if defined _WIN32
|
|
||||||
int zmq_poller_add_fd (void *poller, SOCKET fd, void *user_data, short events);
|
|
||||||
int zmq_poller_modify_fd (void *poller, SOCKET fd, short events);
|
|
||||||
int zmq_poller_remove_fd (void *poller, SOCKET fd);
|
|
||||||
#else
|
|
||||||
int zmq_poller_add_fd (void *poller, int fd, void *user_data, short events);
|
|
||||||
int zmq_poller_modify_fd (void *poller, int fd, short events);
|
|
||||||
int zmq_poller_remove_fd (void *poller, int fd);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/* Scheduling timers */
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
#define ZMQ_HAVE_TIMERS
|
|
||||||
|
|
||||||
typedef void (zmq_timer_fn)(int timer_id, void *arg);
|
|
||||||
|
|
||||||
void *zmq_timers_new (void);
|
|
||||||
int zmq_timers_destroy (void **timers_p);
|
|
||||||
int zmq_timers_add (void *timers, size_t interval, zmq_timer_fn handler, void *arg);
|
|
||||||
int zmq_timers_cancel (void *timers, int timer_id);
|
|
||||||
int zmq_timers_set_interval (void *timers, int timer_id, size_t interval);
|
|
||||||
int zmq_timers_reset (void *timers, int timer_id);
|
|
||||||
long zmq_timers_timeout (void *timers);
|
|
||||||
int zmq_timers_execute (void *timers);
|
|
||||||
|
|
||||||
#endif // ZMQ_BUILD_DRAFT_API
|
|
||||||
|
|
||||||
#endif //ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
#endif //ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__
|
||||||
|
|||||||
@@ -46,8 +46,9 @@
|
|||||||
#include "socket_base.hpp"
|
#include "socket_base.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|
||||||
|
// TODO: determine if this is an issue, since zmq.h is being loaded from pch.
|
||||||
// zmq.h must be included *after* poll.h for AIX to build properly
|
// zmq.h must be included *after* poll.h for AIX to build properly
|
||||||
#include "../include/zmq.h"
|
//#include "../include/zmq.h"
|
||||||
|
|
||||||
int capture(
|
int capture(
|
||||||
class zmq::socket_base_t *capture_,
|
class zmq::socket_base_t *capture_,
|
||||||
|
|||||||
@@ -30,10 +30,7 @@
|
|||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -31,11 +31,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "raw_decoder.hpp"
|
#include "raw_decoder.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|
||||||
|
|||||||
@@ -30,12 +30,6 @@
|
|||||||
#ifndef __ZMQ_RAW_ENCODER_HPP_INCLUDED__
|
#ifndef __ZMQ_RAW_ENCODER_HPP_INCLUDED__
|
||||||
#define __ZMQ_RAW_ENCODER_HPP_INCLUDED__
|
#define __ZMQ_RAW_ENCODER_HPP_INCLUDED__
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
#ifndef NOMINMAX
|
|
||||||
#define NOMINMAX
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -31,10 +31,7 @@
|
|||||||
#include "select.hpp"
|
#include "select.hpp"
|
||||||
#if defined ZMQ_USE_SELECT
|
#if defined ZMQ_USE_SELECT
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#elif defined ZMQ_HAVE_HPUX
|
#elif defined ZMQ_HAVE_HPUX
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -34,14 +34,11 @@
|
|||||||
#include "poller.hpp"
|
#include "poller.hpp"
|
||||||
#if defined ZMQ_USE_SELECT
|
#if defined ZMQ_USE_SELECT
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#elif defined ZMQ_HAVE_OPENVMS
|
#elif defined ZMQ_HAVE_OPENVMS
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#elif defined ZMQ_POLL_BASED_ON_SELECT
|
#elif defined ZMQ_POLL_BASED_ON_SELECT
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#elif defined ZMQ_HAVE_HPUX
|
#elif defined ZMQ_HAVE_HPUX
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -63,9 +62,7 @@
|
|||||||
#include <sys/eventfd.h>
|
#include <sys/eventfd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
@@ -33,10 +33,8 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#if defined _MSC_VER
|
#if defined _MSC_VER
|
||||||
#if defined _WIN32_WCE
|
#if defined _WIN32_WCE
|
||||||
#include <cmnintrin.h>
|
#include <cmnintrin.h>
|
||||||
@@ -60,7 +58,6 @@
|
|||||||
#include "pipe.hpp"
|
#include "pipe.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ctx.hpp"
|
#include "ctx.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "likely.hpp"
|
#include "likely.hpp"
|
||||||
#include "msg.hpp"
|
#include "msg.hpp"
|
||||||
#include "address.hpp"
|
#include "address.hpp"
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "socks.hpp"
|
#include "socks.hpp"
|
||||||
#include "tcp.hpp"
|
#include "tcp.hpp"
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "socks_connecter.hpp"
|
#include "socks_connecter.hpp"
|
||||||
#include "stream_engine.hpp"
|
#include "stream_engine.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "random.hpp"
|
#include "random.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
@@ -44,9 +43,7 @@
|
|||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
#include "socks.hpp"
|
#include "socks.hpp"
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
#include "io_object.hpp"
|
#include "io_object.hpp"
|
||||||
#include "own.hpp"
|
#include "own.hpp"
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
#include "socks.hpp"
|
#include "socks.hpp"
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef __ZMQ_STDINT_HPP_INCLUDED__
|
#ifndef __ZMQ_STDINT_HPP_INCLUDED__
|
||||||
#define __ZMQ_STDINT_HPP_INCLUDED__
|
#define __ZMQ_STDINT_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OPENVMS
|
#if defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OPENVMS
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
#include "i_decoder.hpp"
|
#include "i_decoder.hpp"
|
||||||
#include "options.hpp"
|
#include "options.hpp"
|
||||||
#include "socket_base.hpp"
|
#include "socket_base.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
#include "metadata.hpp"
|
#include "metadata.hpp"
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
|
|||||||
@@ -32,11 +32,8 @@
|
|||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
#include "tcp.hpp"
|
#include "tcp.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -30,11 +30,7 @@
|
|||||||
#ifndef __ZMQ_TCP_ADDRESS_HPP_INCLUDED__
|
#ifndef __ZMQ_TCP_ADDRESS_HPP_INCLUDED__
|
||||||
#define __ZMQ_TCP_ADDRESS_HPP_INCLUDED__
|
#define __ZMQ_TCP_ADDRESS_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
#include "tcp_connecter.hpp"
|
#include "tcp_connecter.hpp"
|
||||||
#include "stream_engine.hpp"
|
#include "stream_engine.hpp"
|
||||||
#include "io_thread.hpp"
|
#include "io_thread.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "random.hpp"
|
#include "random.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
@@ -44,9 +43,7 @@
|
|||||||
#include "tcp_address.hpp"
|
#include "tcp_address.hpp"
|
||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
#include "own.hpp"
|
#include "own.hpp"
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "io_object.hpp"
|
#include "io_object.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#include "tcp_listener.hpp"
|
#include "tcp_listener.hpp"
|
||||||
#include "stream_engine.hpp"
|
#include "stream_engine.hpp"
|
||||||
#include "io_thread.hpp"
|
#include "io_thread.hpp"
|
||||||
@@ -44,9 +43,7 @@
|
|||||||
#include "tcp.hpp"
|
#include "tcp.hpp"
|
||||||
#include "socket_base.hpp"
|
#include "socket_base.hpp"
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "io_object.hpp"
|
#include "io_object.hpp"
|
||||||
#include "tcp_address.hpp"
|
#include "tcp_address.hpp"
|
||||||
#include "../include/zmq.h"
|
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "thread.hpp"
|
#include "thread.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifdef ZMQ_HAVE_WINDOWS
|
||||||
|
|
||||||
|
|||||||
@@ -30,11 +30,7 @@
|
|||||||
#ifndef __ZMQ_THREAD_HPP_INCLUDED__
|
#ifndef __ZMQ_THREAD_HPP_INCLUDED__
|
||||||
#define __ZMQ_THREAD_HPP_INCLUDED__
|
#define __ZMQ_THREAD_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
13
src/trie.cpp
13
src/trie.cpp
@@ -28,20 +28,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
|
#include "macros.hpp"
|
||||||
|
#include "err.hpp"
|
||||||
|
#include "trie.hpp"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "macros.hpp"
|
|
||||||
#include "platform.hpp"
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "err.hpp"
|
|
||||||
#include "trie.hpp"
|
|
||||||
|
|
||||||
zmq::trie_t::trie_t () :
|
zmq::trie_t::trie_t () :
|
||||||
refcnt (0),
|
refcnt (0),
|
||||||
min (0),
|
min (0),
|
||||||
|
|||||||
@@ -27,7 +27,11 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
The precompiled header is not used for c files so this is required here.
|
||||||
|
*/
|
||||||
#include "platform.hpp"
|
#include "platform.hpp"
|
||||||
|
|
||||||
#if defined (ZMQ_USE_TWEETNACL)
|
#if defined (ZMQ_USE_TWEETNACL)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -30,8 +30,6 @@
|
|||||||
#ifndef TWEETNACL_H
|
#ifndef TWEETNACL_H
|
||||||
#define TWEETNACL_H
|
#define TWEETNACL_H
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined (ZMQ_USE_TWEETNACL)
|
#if defined (ZMQ_USE_TWEETNACL)
|
||||||
|
|
||||||
#define crypto_box_SECRETKEYBYTES 32
|
#define crypto_box_SECRETKEYBYTES 32
|
||||||
|
|||||||
@@ -33,14 +33,11 @@
|
|||||||
|
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "udp_address.hpp"
|
#include "udp_address.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "stdint.hpp"
|
#include "stdint.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
#include "ip.hpp"
|
#include "ip.hpp"
|
||||||
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifndef ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|||||||
@@ -30,11 +30,7 @@
|
|||||||
#ifndef __ZMQ_UDP_ADDRESS_HPP_INCLUDED__
|
#ifndef __ZMQ_UDP_ADDRESS_HPP_INCLUDED__
|
||||||
#define __ZMQ_UDP_ADDRESS_HPP_INCLUDED__
|
#define __ZMQ_UDP_ADDRESS_HPP_INCLUDED__
|
||||||
|
|
||||||
#include "platform.hpp"
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,11 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -32,11 +32,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "decoder.hpp"
|
#include "decoder.hpp"
|
||||||
#include "v1_decoder.hpp"
|
#include "v1_decoder.hpp"
|
||||||
#include "likely.hpp"
|
#include "likely.hpp"
|
||||||
|
|||||||
@@ -32,19 +32,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "platform.hpp"
|
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
|
||||||
#include "windows.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "v2_protocol.hpp"
|
#include "v2_protocol.hpp"
|
||||||
#include "v2_decoder.hpp"
|
#include "v2_decoder.hpp"
|
||||||
#include "likely.hpp"
|
#include "likely.hpp"
|
||||||
#include "wire.hpp"
|
#include "wire.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
zmq::v2_decoder_t::v2_decoder_t (size_t bufsize_, int64_t maxmsgsize_) :
|
zmq::v2_decoder_t::v2_decoder_t (size_t bufsize_, int64_t maxmsgsize_) :
|
||||||
shared_message_memory_allocator( bufsize_),
|
shared_message_memory_allocator( bufsize_),
|
||||||
decoder_base_t <v2_decoder_t, shared_message_memory_allocator> (this),
|
decoder_base_t <v2_decoder_t, shared_message_memory_allocator> (this),
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
#include "atomic_ptr.hpp"
|
#include "atomic_ptr.hpp"
|
||||||
#include "yqueue.hpp"
|
#include "yqueue.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
#include "ypipe_base.hpp"
|
#include "ypipe_base.hpp"
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
|
|||||||
@@ -40,16 +40,14 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// TODO: determine if this is an issue, since zmq.h is being loaded from pch.
|
||||||
// zmq.h must be included *after* poll.h for AIX to build properly
|
// zmq.h must be included *after* poll.h for AIX to build properly
|
||||||
#include "../include/zmq.h"
|
//#include "../include/zmq.h"
|
||||||
|
|
||||||
#if defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
#include "windows.hpp"
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// XSI vector I/O
|
// XSI vector I/O
|
||||||
#if defined ZMQ_HAVE_UIO
|
#if defined ZMQ_HAVE_UIO
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
@@ -60,7 +58,6 @@ struct iovec {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|||||||
112
src/zmq_draft.h
Normal file
112
src/zmq_draft.h
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file
|
||||||
|
|
||||||
|
This file is part of libzmq, the ZeroMQ core engine in C++.
|
||||||
|
|
||||||
|
libzmq is free software; you can redistribute it and/or modify it under
|
||||||
|
the terms of the GNU Lesser General Public License (LGPL) as published
|
||||||
|
by the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
As a special exception, the Contributors give you permission to link
|
||||||
|
this library with independent modules to produce an executable,
|
||||||
|
regardless of the license terms of these independent modules, and to
|
||||||
|
copy and distribute the resulting executable under terms of your choice,
|
||||||
|
provided that you also meet, for each linked independent module, the
|
||||||
|
terms and conditions of the license of that module. An independent
|
||||||
|
module is a module which is not derived from or based on this library.
|
||||||
|
If you modify this library, you must extend this exception to your
|
||||||
|
version of the library.
|
||||||
|
|
||||||
|
libzmq is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
|
License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __ZMQ_DRAFT_H_INCLUDED__
|
||||||
|
#define __ZMQ_DRAFT_H_INCLUDED__
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
/* These functions are DRAFT and disabled in stable releases, and subject to */
|
||||||
|
/* change at ANY time until declared stable. */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
#ifndef ZMQ_BUILD_DRAFT_API
|
||||||
|
|
||||||
|
/* DRAFT Socket types. */
|
||||||
|
#define ZMQ_SERVER 12
|
||||||
|
#define ZMQ_CLIENT 13
|
||||||
|
#define ZMQ_RADIO 14
|
||||||
|
#define ZMQ_DISH 15
|
||||||
|
#define ZMQ_GATHER 16
|
||||||
|
#define ZMQ_SCATTER 17
|
||||||
|
|
||||||
|
/* DRAFT Socket methods. */
|
||||||
|
int zmq_join (void *s, const char *group);
|
||||||
|
int zmq_leave (void *s, const char *group);
|
||||||
|
|
||||||
|
/* DRAFT Msg methods. */
|
||||||
|
int zmq_msg_set_routing_id(zmq_msg_t *msg, uint32_t routing_id);
|
||||||
|
uint32_t zmq_msg_routing_id(zmq_msg_t *msg);
|
||||||
|
int zmq_msg_set_group(zmq_msg_t *msg, const char *group);
|
||||||
|
const char *zmq_msg_group(zmq_msg_t *msg);
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
/* Poller polling on sockets,fd and thread-safe sockets */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
#define ZMQ_HAVE_POLLER
|
||||||
|
|
||||||
|
typedef struct zmq_poller_event_t
|
||||||
|
{
|
||||||
|
void *socket;
|
||||||
|
#if defined _WIN32
|
||||||
|
SOCKET fd;
|
||||||
|
#else
|
||||||
|
int fd;
|
||||||
|
#endif
|
||||||
|
void *user_data;
|
||||||
|
short events;
|
||||||
|
} zmq_poller_event_t;
|
||||||
|
|
||||||
|
void *zmq_poller_new (void);
|
||||||
|
int zmq_poller_destroy (void **poller_p);
|
||||||
|
int zmq_poller_add (void *poller, void *socket, void *user_data, short events);
|
||||||
|
int zmq_poller_modify (void *poller, void *socket, short events);
|
||||||
|
int zmq_poller_remove (void *poller, void *socket);
|
||||||
|
int zmq_poller_wait (void *poller, zmq_poller_event_t *event, long timeout);
|
||||||
|
|
||||||
|
#if defined _WIN32
|
||||||
|
int zmq_poller_add_fd (void *poller, SOCKET fd, void *user_data, short events);
|
||||||
|
int zmq_poller_modify_fd (void *poller, SOCKET fd, short events);
|
||||||
|
int zmq_poller_remove_fd (void *poller, SOCKET fd);
|
||||||
|
#else
|
||||||
|
int zmq_poller_add_fd (void *poller, int fd, void *user_data, short events);
|
||||||
|
int zmq_poller_modify_fd (void *poller, int fd, short events);
|
||||||
|
int zmq_poller_remove_fd (void *poller, int fd);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
/* Scheduling timers */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
#define ZMQ_HAVE_TIMERS
|
||||||
|
|
||||||
|
typedef void (zmq_timer_fn)(int timer_id, void *arg);
|
||||||
|
|
||||||
|
void *zmq_timers_new (void);
|
||||||
|
int zmq_timers_destroy (void **timers_p);
|
||||||
|
int zmq_timers_add (void *timers, size_t interval, zmq_timer_fn handler, void *arg);
|
||||||
|
int zmq_timers_cancel (void *timers, int timer_id);
|
||||||
|
int zmq_timers_set_interval (void *timers, int timer_id, size_t interval);
|
||||||
|
int zmq_timers_reset (void *timers, int timer_id);
|
||||||
|
long zmq_timers_timeout (void *timers);
|
||||||
|
int zmq_timers_execute (void *timers);
|
||||||
|
|
||||||
|
#endif // ZMQ_BUILD_DRAFT_API
|
||||||
|
|
||||||
|
#endif //ifndef __ZMQ_DRAFT_H_INCLUDED__
|
||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "macros.hpp"
|
#include "macros.hpp"
|
||||||
#include "platform.hpp"
|
|
||||||
|
|
||||||
#include "clock.hpp"
|
#include "clock.hpp"
|
||||||
#include "err.hpp"
|
#include "err.hpp"
|
||||||
@@ -39,15 +38,13 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#if !defined ZMQ_HAVE_WINDOWS
|
#if !defined ZMQ_HAVE_WINDOWS
|
||||||
# include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
|
||||||
# include "windows.hpp"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (ZMQ_USE_TWEETNACL)
|
#if defined (ZMQ_USE_TWEETNACL)
|
||||||
# include "tweetnacl.h"
|
#include "tweetnacl.h"
|
||||||
#elif defined (ZMQ_USE_LIBSODIUM)
|
#elif defined (ZMQ_USE_LIBSODIUM)
|
||||||
# include "sodium.h"
|
#include "sodium.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void zmq_sleep (int seconds_)
|
void zmq_sleep (int seconds_)
|
||||||
|
|||||||
Reference in New Issue
Block a user