1
0
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:
Sandu Liviu Catalin
2021-02-02 19:07:02 +02:00
parent 82b7f75b80
commit fc9419677f
1092 changed files with 147348 additions and 92 deletions
module
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
templates
thompsa.mdtommd.mdtomzbench.mdtoonetown.mdtrevorbernard.mdtrya.mdtwhittock.mdulikoehler.mdviciious.mdvortechs2000.mdvtellier.mdvyskocilm.mdwallstprog.mdwillstrang.mdxantares.mdxaqq.mdxqcool.mqyan12125.mdyuvallanger.mdzedalaye.mdzoedberg.mdzoobab.md
SECURITY.mdSupportedPlatforms.mdacinclude.m4appveyor.ymlautogen.shbranding.bmp
builds
Makefile.amREADME
abi-compliance-checker
android
cmake
coverage
cygwin
deprecated-msvc
Makefile.amerrno.cpperrno.hppplatform.hpp
properties
readme.txtresource.hresource.rc
vs2008
vs2010
vs2012
vs2013
vs2015
vs2015_xp
vs2017
fuzz
gyp
ios
mingw32
nuget
openwrt
qnx
valgrind
vxworks
zos
ci_build.shci_deploy.shconfig.shconfigure.ac
doc
external
include
installer.ico
m4
packaging
perf
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
version.sh

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 ();
}