mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-21 09:37:13 +02:00
Initial ZMQ bindings.
This commit is contained in:
module
CMakeLists.txtCore.cpp
Library
PocoLib
Crypto.cppCrypto.hppData.cppJSON.cppNet.cppRegEx.cppRegEx.hppRegister.cppRegister.hppTime.cppTime.hppUtil.cppXML.cpp
Register.cppSqrat
vendor
CMakeLists.txt
ConcurrentQueue
ZMQ
AUTHORSCMakeLists.txtCOPYINGCOPYING.LESSERDockerfileDoxygen.cfgINSTALLJenkinsfileMakefile.amNEWSREADME.cygwin.mdREADME.doxygen.mdREADME.md
RELICENSE
AnCaPepe.mdAndreLouisCaron.mdAsmod4n.mdAxelNennker.mdBklyn.mdBotje.mdC-Sir.mdCommanderBubble.mdDaiyuHurst.mdEelis.mdFrancoFichtner.mdFredTreg.mdHugne.mdJohanMabille.mdJonDyte.mdKLNikita.mdMartinGrigorov.mdNeopallium.mdQuuxplusone.mdREADME.mdRPGillespie6.mdRicardicus.mdSRombauts.mdSergheiNovac.mdStephaneVales.mdSylvainCorlay.mdTTimo.mdThePrez.mdTobiSchluter.mdWenbinHou.mda4z.mdabbradar.mdackalker.mdacsearle.mdagronholm.mdaixxe.mdambitslix.mdamuraru.mdansweroo.mdantonrd.mdardrabczyk.mdarsenm.mdasafkahlon.mdaseering.mdatomashpolskiy.mdbanburybill.mdbbdb68.mdbebopagogo.mdbenjdero.mdbjoto.mdbjovke.mdbl0x.mdbluca.mdboxkey.mdbprager.mdbrett-cameron.mdbrian-peloton.mdbrocade_communications_systems.mdbrubakerjeff.mdbwbuchanan.mdc-rack.mdc-zhao-3g.mdcalid.mdcamachat.mdcbusbey.mdcdolan.mdchickenkiller.mdchrisstaite.mdchuckremes.mdchuggafan.mdchymanfx.mdcjuniet.mdckamm.mdclaws.mdclkao.mdcolletted.mdcowo78.mdcrocket.mdcwsmith.mddanielhtshih.mddanriegsecker.mddemozon.mddennisklein.mddfons.mddhammika.mddimpase.mddiorcety.mddjelenc.mddkrikun.mddmeehan1968.mddrbobbeaty.mddrodri.mddrolevar.mdeburkitt.mdegomotion.mdeldruin.mdemtr.mdeponsko.mdericsson.mdevoskuil.mdezhikus.mdf18m.mdfanquake.mdfebeling.mdferdnyc.mdffontaine.mdfidlej.mdflub.mdgabm.mdgarlick.mdgavinmcniff.mdgcsideal.mdgena-moscow.mdghpu.mdgitfoxi.mdglemercier.mdgonzus.mdgoodfella.mdgoogle.mdgrmt.mdguidovranken.mdguillon.mdgummif.mdherbrechtsmeier.mdhewlett_packard_enterprise.mdhgourvest.mdhnwyllmm.mdhoditohod.mdhpsaturn.mdhsw.mdianbarber.mdimatix.mdimkcy9.mdinuik.mdipa.mdipechorin.mdjackpimbert.mdjacquesg.mdjakecobb.mdjbreams.mdjcfr.mdjcourreges.mdjean-airoldie.mdjemc.mdjens.auer.mdjimenezrick.mdjimklimov.mdjkryl.mdjlauenercern.mdjohntconklin.mdjruffin.mdjsyoo5b.mdkaczmarj.mdkalantar.mdkanonet.mdkentzo.mdkfish.mdkobolog.mdkreuzberger.mdkurdybacha.mdlaplaceyang.mdlatchmoor-services-carcich.mdleonarf.mdliedtkeInTUM.mdlinville.mdloachfish.mdlodagro.mdlourens.mdlstacul.mdmadebr.mdmalexzx.mdmancasg.mdmartin-ksti.mdmattconnolly.mdmauri-melato.mdmbarbisan.mdmdionisio.mdmditzel.mdmeox.mdmesegura.mdmgatny.mdmichicc.mdmicromass-ricnewton.mdmileschet.mdminiway.mdminrk.mdmipaaa.mdmjvk.mdmkluwe.mdmkoppanen.mdmloy.mdmongodb.mdmontoyaedu.mdmoretromain.mdmrvn.mdmsune.mdmurphybytes.mdmvilim.mdmystfit.mdnaos_ltd.mdnatano.mdneheb.mdninoles.mdnixman.mdnokia.mdnormano.mdojura.mdolafmandel.mdomegastick.mdopedroso.mdopensource-kymetacorp.mdpaddor.mdpanlinux.mdpavel-pimenov.mdphilippeleite.mdphreed.mdpijyoi.mdpmienk.mdpnnl.mdprarrot.mdpsl-felipefarinon.mdptroja.mdrcxdude.mdreunanen.mdreza-ebrahimi.mdrgagnon24.mdrikvdh.mdrlenferink.mdroalz.mdrodgert.mdrotty.mdsab24.mdsappo.mdscemama.mdschulzch.mdsdrsdr.mdserg06.mdshancat.mdsheremetyev.mdshripchenko.mdsigiesec.mdsimias.mdskaes.mdskaller.mdskicc.mdsomdoron.mdsonoware.mdsoulik.mdspotify.mdsradomski.mdssbl.mdstanpl.mdstaticfloat.mdstd-any-emplace.mdsteve-o.mdstraubar.mdsuudy.mdswansontec.mdt-b.mdtSed.mdtabe.mdtailhook.mdtaotetek.mdtarmo.mdtberkey.md
SECURITY.mdSupportedPlatforms.mdacinclude.m4appveyor.ymlautogen.shbranding.bmptemplates
relicense-template-mplv2-any-osi.txtrelicense-template-mplv2-share-alike-osi.txtrelicense-template-mplv2.txt
thompsa.mdtommd.mdtomzbench.mdtoonetown.mdtrevorbernard.mdtrya.mdtwhittock.mdulikoehler.mdviciious.mdvortechs2000.mdvtellier.mdvyskocilm.mdwallstprog.mdwillstrang.mdxantares.mdxaqq.mdxqcool.mqyan12125.mdyuvallanger.mdzedalaye.mdzoedberg.mdzoobab.mdbuilds
Makefile.amREADME
ci_build.shci_deploy.shconfig.shconfigure.acabi-compliance-checker
android
cmake
Modules
ClangFormat.cmakeFindAsciiDoc.cmakeFindNSS3.cmakeFindSodium.cmakeTestZMQVersion.cmakeZMQSourceRunChecks.cmakeZMQSupportMacros.cmake
NSIS.template32.inNSIS.template64.inZeroMQConfig.cmake.inci_build.shclang-format-check.sh.inplatform.hpp.incoverage
cygwin
deprecated-msvc
Makefile.amerrno.cpperrno.hppplatform.hpp
properties
Common.propsDLL.propsDebug.propsDebugDEXE.propsDebugDLL.propsDebugLEXE.propsDebugLIB.propsDebugLTCG.propsDebugSEXE.propsEXE.propsLIB.propsLTCG.propsLink.propsMessages.propsOutput.propsRelease.propsReleaseDEXE.propsReleaseDLL.propsReleaseLEXE.propsReleaseLIB.propsReleaseLTCG.propsReleaseSEXE.propsWin32.propsx64.props
readme.txtresource.hresource.rcvs2008
vs2010
inproc_lat
inproc_thr
libsodium.import.propslibsodium.import.xmllibzmq.import.propslibzmq.import.xmllibzmq.slnlibzmq
local_lat
local_thr
remote_lat
remote_thr
vs2012
inproc_lat
inproc_thr
libsodium.import.propslibsodium.import.xmllibzmq.import.propslibzmq.import.xmllibzmq.slnlibzmq
local_lat
local_thr
remote_lat
remote_thr
vs2013
inproc_lat
inproc_thr
libsodium.import.propslibsodium.import.xmllibzmq.import.propslibzmq.import.xmllibzmq.slnlibzmq
local_lat
local_thr
remote_lat
remote_thr
vs2015
inproc_lat
inproc_thr
libsodium.import.propslibsodium.import.xmllibzmq.import.propslibzmq.import.xmllibzmq.slnlibzmq
local_lat
local_thr
remote_lat
remote_thr
vs2015_xp
vs2017
inproc_lat
inproc_thr
libsodium.import.propslibsodium.import.xmllibzmq.import.propslibzmq.import.xmllibzmq.slnlibzmq
local_lat
local_thr
remote_lat
remote_thr
fuzz
gyp
ios
mingw32
nuget
openwrt
qnx
valgrind
vxworks
zos
doc
Makefile.amasciidoc.confzmq.txtzmq_atomic_counter_dec.txtzmq_atomic_counter_destroy.txtzmq_atomic_counter_inc.txtzmq_atomic_counter_new.txtzmq_atomic_counter_set.txtzmq_atomic_counter_value.txtzmq_bind.txtzmq_close.txtzmq_connect.txtzmq_connect_peer.txtzmq_ctx_destroy.txtzmq_ctx_get.txtzmq_ctx_get_ext.txtzmq_ctx_new.txtzmq_ctx_set.txtzmq_ctx_set_ext.txtzmq_ctx_shutdown.txtzmq_ctx_term.txtzmq_curve.txtzmq_curve_keypair.txtzmq_curve_public.txtzmq_disconnect.txtzmq_errno.txtzmq_getsockopt.txtzmq_gssapi.txtzmq_has.txtzmq_init.txtzmq_inproc.txtzmq_ipc.txtzmq_msg_close.txtzmq_msg_copy.txtzmq_msg_data.txtzmq_msg_get.txtzmq_msg_gets.txtzmq_msg_init.txtzmq_msg_init_buffer.txtzmq_msg_init_data.txtzmq_msg_init_size.txtzmq_msg_more.txtzmq_msg_move.txtzmq_msg_recv.txtzmq_msg_routing_id.txtzmq_msg_send.txtzmq_msg_set.txtzmq_msg_set_routing_id.txtzmq_msg_size.txtzmq_null.txtzmq_pgm.txtzmq_plain.txtzmq_poll.txtzmq_poller.txtzmq_proxy.txtzmq_proxy_steerable.txtzmq_recv.txtzmq_recvmsg.txtzmq_send.txtzmq_send_const.txtzmq_sendmsg.txtzmq_setsockopt.txtzmq_socket.txtzmq_socket_monitor.txtzmq_socket_monitor_versioned.txtzmq_strerror.txtzmq_tcp.txtzmq_term.txtzmq_timers.txtzmq_tipc.txtzmq_udp.txtzmq_unbind.txtzmq_version.txtzmq_vmci.txtzmq_z85_decode.txtzmq_z85_encode.txt
external
sha1
unity
wepoll
include
installer.icom4
ax_check_compile_flag.m4ax_check_vscript.m4ax_code_coverage.m4ax_cxx_compile_stdcxx.m4ax_cxx_compile_stdcxx_11.m4ax_func_posix_memalign.m4ax_valgrind_check.m4
packaging
README
debian
changelogcompatcontrolcopyrightlibzmq3-dev.installlibzmq3-dev.manpageslibzmq5.docslibzmq5.installrules
source
zeromq.dsc.obsnuget
obs
redhat
perf
benchmark_radix_tree.cppgenerate_csv.shgenerate_graphs.pyinproc_lat.cppinproc_thr.cpplocal_lat.cpplocal_thr.cppproxy_thr.cppremote_lat.cppremote_thr.cpp
src
address.cppaddress.hpparray.hppatomic_counter.hppatomic_ptr.hppblob.hppchannel.cppchannel.hppclient.cppclient.hppclock.cppclock.hppcommand.hppcompat.hppcondition_variable.hppconfig.hppctx.cppctx.hppcurve_client.cppcurve_client.hppcurve_client_tools.hppcurve_mechanism_base.cppcurve_mechanism_base.hppcurve_server.cppcurve_server.hppdbuffer.hppdealer.cppdealer.hppdecoder.hppdecoder_allocators.cppdecoder_allocators.hppdevpoll.cppdevpoll.hppdgram.cppdgram.hppdish.cppdish.hppdist.cppdist.hppencoder.hppendpoint.cppendpoint.hppepoll.cppepoll.hpperr.cpperr.hppfd.hppfq.cppfq.hppgather.cppgather.hppgeneric_mtrie.hppgeneric_mtrie_impl.hppgssapi_client.cppgssapi_client.hppgssapi_mechanism_base.cppgssapi_mechanism_base.hppgssapi_server.cppgssapi_server.hppi_decoder.hppi_encoder.hppi_engine.hppi_mailbox.hppi_poll_events.hppio_object.cppio_object.hppio_thread.cppio_thread.hppip.cppip.hppip_resolver.cppip_resolver.hppipc_address.cppipc_address.hppipc_connecter.cppipc_connecter.hppipc_listener.cppipc_listener.hppkqueue.cppkqueue.hpplb.cpplb.hpplibzmq.pc.inlibzmq.verslikely.hppmacros.hppmailbox.cppmailbox.hppmailbox_safe.cppmailbox_safe.hppmechanism.cppmechanism.hppmechanism_base.cppmechanism_base.hppmetadata.cppmetadata.hppmsg.cppmsg.hppmtrie.cppmtrie.hppmutex.hppnorm_engine.cppnorm_engine.hppnull_mechanism.cppnull_mechanism.hppobject.cppobject.hppoptions.cppoptions.hppown.cppown.hpppair.cpppair.hpppeer.cpppeer.hpppgm_receiver.cpppgm_receiver.hpppgm_sender.cpppgm_sender.hpppgm_socket.cpppgm_socket.hpppipe.cpppipe.hppplain_client.cppplain_client.hppplain_common.hppplain_server.cppplain_server.hpppoll.cpppoll.hpppoller.hpppoller_base.cpppoller_base.hpppolling_util.cpppolling_util.hpppollset.cpppollset.hppprecompiled.cppprecompiled.hppproxy.cppproxy.hpppub.cpppub.hpppull.cpppull.hpppush.cpppush.hppradio.cppradio.hppradix_tree.cppradix_tree.hpprandom.cpprandom.hppraw_decoder.cppraw_decoder.hppraw_encoder.cppraw_encoder.hppraw_engine.cppraw_engine.hppreaper.cppreaper.hpprep.cpprep.hppreq.cppreq.hpprouter.cpprouter.hppscatter.cppscatter.hppsecure_allocator.hppselect.cppselect.hppserver.cppserver.hppsession_base.cppsession_base.hppsignaler.cppsignaler.hppsocket_base.cppsocket_base.hppsocket_poller.cppsocket_poller.hppsocks.cppsocks.hppsocks_connecter.cppsocks_connecter.hppstdint.hppstream.cppstream.hppstream_connecter_base.cppstream_connecter_base.hppstream_engine_base.cppstream_engine_base.hppstream_listener_base.cppstream_listener_base.hppsub.cppsub.hpptcp.cpptcp.hpptcp_address.cpptcp_address.hpptcp_connecter.cpptcp_connecter.hpptcp_listener.cpptcp_listener.hppthread.cppthread.hpptimers.cpptimers.hpptipc_address.cpptipc_address.hpptipc_connecter.cpptipc_connecter.hpptipc_listener.cpptipc_listener.hpptrie.cpptrie.hpptweetnacl.ctweetnacl.hudp_address.cppudp_address.hppudp_engine.cppudp_engine.hppv1_decoder.cppv1_decoder.hppv1_encoder.cppv1_encoder.hppv2_decoder.cppv2_decoder.hppv2_encoder.cppv2_encoder.hppv2_protocol.hppv3_1_encoder.cppv3_1_encoder.hppversion.rc.invmci.cppvmci.hppvmci_address.cppvmci_address.hppvmci_connecter.cppvmci_connecter.hppvmci_listener.cppvmci_listener.hppwindows.hppwire.hppws_address.cppws_address.hppws_connecter.cppws_connecter.hppws_decoder.cppws_decoder.hppws_encoder.cppws_encoder.hppws_engine.cppws_engine.hppws_listener.cppws_listener.hppws_protocol.hppwss_address.cppwss_address.hppwss_engine.cppwss_engine.hppxpub.cppxpub.hppxsub.cppxsub.hppypipe.hppypipe_base.hppypipe_conflate.hppyqueue.hppzap_client.cppzap_client.hppzmq.cppzmq_draft.hzmq_utils.cppzmtp_engine.cppzmtp_engine.hpp
tests
CMakeLists.txtREADME.mdtest_abstract_ipc.cpptest_address_tipc.cpptest_ancillaries.cpptest_app_meta.cpptest_atomics.cpptest_base85.cpptest_bind_after_connect_tcp.cpptest_bind_curve_fuzzer.cpptest_bind_fuzzer.cpptest_bind_null_fuzzer.cpptest_bind_src_address.cpptest_bind_stream_fuzzer.cpptest_bind_ws_fuzzer.cpptest_capabilities.cpptest_channel.cpptest_client_server.cpptest_conflate.cpptest_connect_curve_fuzzer.cpptest_connect_delay_tipc.cpptest_connect_fuzzer.cpptest_connect_null_fuzzer.cpptest_connect_resolve.cpptest_connect_rid.cpptest_connect_stream_fuzzer.cpptest_connect_ws_fuzzer.cpptest_ctx_destroy.cpptest_ctx_options.cpptest_dgram.cpptest_diffserv.cpptest_disconnect_inproc.cpptest_disconnect_msg.cpptest_filter_ipc.cpptest_fork.cpptest_getsockopt_memset.cpptest_heartbeats.cpptest_hello_msg.cpptest_hwm.cpptest_hwm_pubsub.cpptest_immediate.cpptest_inproc_connect.cpptest_invalid_rep.cpptest_iov.cpptest_ipc_wildcard.cpptest_issue_566.cpptest_last_endpoint.cpptest_many_sockets.cpptest_metadata.cpptest_mock_pub_sub.cpptest_monitor.cpptest_msg_ffn.cpptest_msg_flags.cpptest_msg_init.cpptest_pair_inproc.cpptest_pair_ipc.cpptest_pair_tcp.cpptest_pair_tcp_cap_net_admin.cpptest_pair_tipc.cpptest_pair_vmci.cpptest_peer.cpptest_poller.cpptest_probe_router.cpptest_proxy.cpptest_proxy_hwm.cpptest_proxy_single_socket.cpptest_proxy_terminate.cpptest_pub_invert_matching.cpptest_pubsub.cpptest_radio_dish.cpptest_rebind_ipc.cpptest_reconnect_ivl.cpptest_reconnect_options.cpptest_req_correlate.cpptest_req_relaxed.cpptest_reqrep_device.cpptest_reqrep_device_tipc.cpptest_reqrep_inproc.cpptest_reqrep_ipc.cpptest_reqrep_tcp.cpptest_reqrep_tipc.cpptest_reqrep_vmci.cpptest_router_handover.cpptest_router_mandatory.cpptest_router_mandatory_hwm.cpptest_router_mandatory_tipc.cpptest_router_notify.cpptest_scatter_gather.cpptest_security_curve.cpptest_security_gssapi.cpptest_security_no_zap_handler.cpptest_security_null.cpptest_security_plain.cpptest_security_zap.cpptest_setsockopt.cpptest_shutdown_stress.cpptest_shutdown_stress_tipc.cpptest_socket_null.cpptest_socket_options_fuzzer.cpptest_sockopt_hwm.cpptest_socks.cpptest_sodium.cpptest_spec_dealer.cpptest_spec_pushpull.cpptest_spec_rep.cpptest_spec_req.cpptest_spec_router.cpptest_srcfd.cpptest_stream.cpptest_stream_disconnect.cpptest_stream_empty.cpptest_stream_exceeds_buffer.cpptest_stream_timeout.cpptest_sub_forward.cpptest_sub_forward_tipc.cpptest_system.cpptest_tcp_accept_filter.cpptest_term_endpoint.cpptest_term_endpoint_tipc.cpptest_thread_safe.cpptest_timeo.cpptest_timers.cpptest_unbind_wildcard.cpptest_use_fd.cpptest_ws_transport.cpptest_wss_transport.cpptest_xpub_manual.cpptest_xpub_manual_last_value.cpptest_xpub_nodrop.cpptest_xpub_verbose.cpptest_xpub_welcome_msg.cpptest_z85_decode_fuzzer.cpptest_zmq_poll_fd.cpptestutil.cpptestutil.hpptestutil_monitoring.cpptestutil_monitoring.hpptestutil_security.cpptestutil_security.hpptestutil_unity.cpptestutil_unity.hpp
tools
unittests
CMakeLists.txtunittest_curve_encoding.cppunittest_ip_resolver.cppunittest_mtrie.cppunittest_poller.cppunittest_radix_tree.cppunittest_resolver_common.hppunittest_udp_address.cppunittest_ypipe.cpp
version.sh
60
vendor/ZMQ/tests/test_pair_tipc.cpp
vendored
Normal file
60
vendor/ZMQ/tests/test_pair_tipc.cpp
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "testutil.hpp"
|
||||
#include "testutil_unity.hpp"
|
||||
|
||||
SETUP_TEARDOWN_TESTCONTEXT
|
||||
|
||||
void test_roundtrip ()
|
||||
{
|
||||
void *sb = test_context_socket (ZMQ_PAIR);
|
||||
TEST_ASSERT_SUCCESS_ERRNO (zmq_bind (sb, "tipc://{5560,0,0}"));
|
||||
|
||||
void *sc = test_context_socket (ZMQ_PAIR);
|
||||
TEST_ASSERT_SUCCESS_ERRNO (zmq_connect (sc, "tipc://{5560,0}@0.0.0"));
|
||||
|
||||
bounce (sb, sc);
|
||||
|
||||
test_context_socket_close (sc);
|
||||
test_context_socket_close (sb);
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
if (!is_tipc_available ()) {
|
||||
printf ("TIPC environment unavailable, skipping test\n");
|
||||
return 77;
|
||||
}
|
||||
|
||||
UNITY_BEGIN ();
|
||||
RUN_TEST (test_roundtrip);
|
||||
return UNITY_END ();
|
||||
}
|
Reference in New Issue
Block a user