首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > ZeroMQ高级发布订阅模式

ZeroMQ高级发布订阅模式

资 源 简 介

Clone server, Model Six (clonesrv6.c): main task setupint main (int argc, char *argv []){clonesrv_t *self = (clonesrv_t *) zmalloc (sizeof (clonesrv_t));if (argc == 2 && streq (argv [1], "-p")) {zclock_log ("I: primary active, waiting for backup (passive)");self->bstar = bstar_new (BSTAR_PRIMARY, "tcp://*:5003","tcp://localhost:5004");bstar_voter (self->bstar, "tcp://*:5556", ZMQ_ROUTER, s_snapshots, self);self->port = 5556;self->peer = 5566;self->primary = TRUE;}elseif (argc == 2 && streq (argv [1], "-b")) {zclock_log ("I: backup passive, waiting for primary (active)");self->bstar = bstar_new (BSTAR_BACKUP, "tcp://*:5004","tcp://localhost:5003");bstar_voter (self->bstar, "tcp://*:5566", ZMQ_ROUTER, s_snapshots, self);self->port = 5566;

文 件 列 表

C
vg
testit
README
c
build
.gitignore
asyncsrv.c
bstar.c
bstar.h
bstarcli.c
bstarsrv.c
bstarsrv2.c
clone.c
clone.h
clonecli1.c
clonecli2.c
clonecli3.c
clonecli4.c
clonecli5.c
clonecli6.c
clonesrv1.c
clonesrv2.c
clonesrv3.c
clonesrv4.c
clonesrv5.c
clonesrv6.c
fileio1.c
fileio2.c
fileio3.c
flcliapi.c
flcliapi.h
flclient1.c
flclient2.c
flclient3.c
flserver1.c
flserver2.c
flserver3.c
hwclient.c
hwserver.c
identity.c
interrupt.c
kvmsg.c
kvmsg.h
kvsimple.c
kvsimple.h
lpclient.c
lpserver.c
lruqueue.c
lruqueue2.c
lruqueue3.c
mdbroker.c
mdcliapi.c
mdcliapi.h
mdcliapi2.c
mdcliapi2.h
mdclient.c
mdclient2.c
mdp.h
mdworker.c
mdwrkapi.c
mdwrkapi.h
mmiecho.c
msgqueue.c
mspoller.c
msreader.c
mtrelay.c
mtserver.c
peering1.c
peering2.c
peering3.c
ppqueue.c
ppworker.c
psenvpub.c
psenvsub.c
rrbroker.c
rrclient.c
rrworker.c
rtdealer.c
rtmama.c
rtpapa.c
rtrouter.c
spqueue.c
spworker.c
suisnail.c
syncpub.c
syncsub.c
tasksink.c
tasksink2.c
taskvent.c
taskwork.c
taskwork2.c
testit.c
ticlient.c
titanic.c
tripping.c
tstkvmsg.c
tstkvsimple.c
valgrind.supp
version.c
wuclient.c
wuproxy.c
wuserver.c
zhelpers.h

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.242208s