cmake_minimum_required(VERSION 3.16)
add_compile_options(-std=c++11)
set(ZMQ_INCLUDE "/home/lzc/linux/3rd/zmq/lib_r/")
#set()
#指定项目的名称
PROJECT(server)
#头文件
include_directories(.
zmq
3rd/zmq/include)
link_directories(${ZMQ_INCLUDE})
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lzmq -lpthread -ldl")
#设置编译的版本
set(CMAKE_BUILD_TYPE_Release)
#源文件
add_executable(server
libzmq_server.cpp)
add_link_options("-lpthread -lc -ldl")
#设置链接库
#target_link_libraries (${PROJECT_NAME} libzmq.a libpthread.a libc.a libdl.a)
target_link_libraries (${PROJECT_NAME} zmq pthread)
没有合适的资源?快使用搜索试试~ 我知道了~
libzmq demon
共165个文件
exe:92个
tlog:12个
hpp:6个
需积分: 5 0 下载量 32 浏览量
2023-10-05
17:15:13
上传
评论
收藏 77.18MB RAR 举报
温馨提示
c++版本的,包含windows客户端,windows和linux服务端,已通过测试,可以正常收发消息
资源推荐
资源详情
资源评论
收起资源包目录
libzmq demon (165个子文件)
libzmq.so.4.0.3 5.35MB
libzmq.so.4 5.35MB
libzmq.so.5 15.77MB
libzmq.so.5.2.5 15.77MB
libzmq.a 13.61MB
libzmq_server.cpp 2KB
libzmq_server.cpp 2KB
libzmq_client.cpp 1KB
Browse.VC.db 42.01MB
Browse.VC.db 41.57MB
Browse.VC.db-shm 32KB
Browse.VC.db-wal 0B
libzmq-v142-mt-4_3_5.dll 415KB
libzmq-v142-mt-4_3_5.dll 415KB
libzmq-v142-mt-4_3_5.dll 415KB
unittest_poller.exe 56KB
unittest_mtrie.exe 48KB
unittest_ip_resolver.exe 46KB
unittest_radix_tree.exe 45KB
test_security_zap.exe 40KB
unittest_udp_address.exe 37KB
test_security_plain.exe 30KB
test_xpub_manual.exe 29KB
test_stream.exe 29KB
test_spec_pushpull.exe 29KB
test_heartbeats.exe 29KB
test_security_null.exe 29KB
test_xpub_verbose.exe 27KB
test_hwm_pubsub.exe 27KB
test_inproc_connect.exe 26KB
test_reqrep_tcp.exe 26KB
test_stream_disconnect.exe 26KB
test_tcp_accept_filter.exe 26KB
test_pair_ipc.exe 26KB
test_unbind_wildcard.exe 25KB
test_connect_rid.exe 25KB
test_reconnect_ivl.exe 25KB
test_monitor.exe 25KB
test_mock_pub_sub.exe 25KB
test_hwm.exe 24KB
test_req_relaxed.exe 24KB
test_immediate.exe 24KB
test_metadata.exe 24KB
test_pair_tcp.exe 23KB
test_term_endpoint.exe 23KB
test_spec_req.exe 23KB
test_spec_dealer.exe 23KB
test_reqrep_device.exe 23KB
test_router_handover.exe 23KB
test_iov.exe 23KB
test_stream_timeout.exe 23KB
test_req_correlate.exe 23KB
test_reqrep_ipc.exe 23KB
test_xpub_welcome_msg.exe 22KB
test_msg_ffn.exe 22KB
test_sub_forward.exe 22KB
test_spec_router.exe 22KB
test_ipc_wildcard.exe 22KB
test_spec_rep.exe 22KB
test_srcfd.exe 22KB
test_pub_invert_matching.exe 22KB
test_security_no_zap_handler.exe 22KB
test_setsockopt.exe 22KB
test_invalid_rep.exe 22KB
test_probe_router.exe 22KB
test_xpub_nodrop.exe 22KB
test_diffserv.exe 22KB
libzmq_server.exe 22KB
libzmq_server.exe 22KB
test_xpub_topic.exe 22KB
test_pair_inproc.exe 22KB
test_ctx_options.exe 22KB
test_rebind_ipc.exe 22KB
test_timeo.exe 22KB
test_router_mandatory.exe 22KB
unittest_ypipe.exe 22KB
test_reqrep_inproc.exe 22KB
test_issue_566.exe 21KB
test_reconnect_options.exe 21KB
test_disconnect_inproc.exe 21KB
test_base85.exe 21KB
test_bind_after_connect_tcp.exe 21KB
test_sockopt_hwm.exe 21KB
test_msg_flags.exe 21KB
test_system.exe 21KB
test_conflate.exe 20KB
test_last_endpoint.exe 20KB
test_stream_empty.exe 20KB
test_connect_resolve.exe 20KB
libzmq_client.exe 20KB
test_bind_src_address.exe 19KB
test_shutdown_stress.exe 19KB
test_ctx_destroy.exe 19KB
unittest_curve_encoding.exe 18KB
test_sodium.exe 17KB
test_socket_null.exe 17KB
proxy_thr.exe 16KB
test_ancillaries.exe 16KB
test_atomics.exe 15KB
test_capabilities.exe 14KB
共 165 条
- 1
- 2
资源评论
MSDN_lsx
- 粉丝: 869
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功