Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SandBox
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
PotatoGim
SandBox
Commits
4a3f2236
Commit
4a3f2236
authored
Jan 26, 2015
by
PotatoGim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZeroMQ Dealer to Dealer 프록시 수정
parent
6df5be57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
zmq_proxy_dealer_to_dealer-client.pl
ZeroMQ/perl/zmq_proxy_dealer_to_dealer-client.pl
+1
-1
zmq_proxy_dealer_to_dealer-proxy.pl
ZeroMQ/perl/zmq_proxy_dealer_to_dealer-proxy.pl
+2
-2
zmq_proxy_dealer_to_dealer-server.pl
ZeroMQ/perl/zmq_proxy_dealer_to_dealer-server.pl
+3
-2
No files found.
ZeroMQ/perl/zmq_proxy_dealerclient.pl
→
ZeroMQ/perl/zmq_proxy_dealer
_to_dealer-
client.pl
View file @
4a3f2236
...
...
@@ -22,7 +22,7 @@ my $socket = zmq_socket($context, ZMQ_DEALER);
my
$seq
=
0
;
zmq_setsockopt
(
$socket
,
ZMQ_IDENTITY
,
$$
);
zmq_connect
(
$socket
,
"ipc:///tmp/test_
proxy
.ipc"
);
zmq_connect
(
$socket
,
"ipc:///tmp/test_
frontend
.ipc"
);
while
(
1
)
{
...
...
ZeroMQ/perl/zmq_proxy_dealerproxy.pl
→
ZeroMQ/perl/zmq_proxy_dealer
_to_dealer-
proxy.pl
View file @
4a3f2236
...
...
@@ -21,8 +21,8 @@ my $context = zmq_ctx_new();
my
$frontend
=
zmq_socket
(
$context
,
ZMQ_ROUTER
);
my
$backend
=
zmq_socket
(
$context
,
ZMQ_DEALER
);
zmq_bind
(
$frontend
,
"ipc:///tmp/test_
proxy
.ipc"
);
zmq_
connect
(
$backend
,
"ipc:///tmp/test
.ipc"
);
zmq_bind
(
$frontend
,
"ipc:///tmp/test_
frontend
.ipc"
);
zmq_
bind
(
$backend
,
"ipc:///tmp/test_backend
.ipc"
);
while
(
1
)
{
...
...
ZeroMQ/perl/zmq_proxy_dealerserver.pl
→
ZeroMQ/perl/zmq_proxy_dealer
_to_dealer-
server.pl
View file @
4a3f2236
...
...
@@ -21,8 +21,8 @@ my $context = zmq_ctx_new();
my
$socket
=
zmq_socket
(
$context
,
ZMQ_DEALER
);
my
$seq
=
0
;
zmq_setsockopt
(
$socket
,
ZMQ_IDENTITY
,
$$
);
zmq_
bind
(
$socket
,
"ipc:///tmp/test
.ipc"
);
zmq_setsockopt
(
$socket
,
ZMQ_IDENTITY
,
$$
);
zmq_
connect
(
$socket
,
"ipc:///tmp/test_backend
.ipc"
);
while
(
1
)
{
...
...
@@ -34,6 +34,7 @@ while (1)
{
my
@msgs
=
();
print
"TEST\n"
;
while
(
1
)
{
my
$msg
=
zmq_msg_init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment