Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
651c1adc
Commit
651c1adc
authored
Sep 01, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sys transport introdced;
inproc://log
moved to
sys://log
parent
ce0972dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ctx.cpp
src/ctx.cpp
+1
-1
socket_base.cpp
src/socket_base.cpp
+5
-5
No files found.
src/ctx.cpp
View file @
651c1adc
...
...
@@ -70,7 +70,7 @@ zmq::ctx_t::ctx_t (uint32_t io_threads_) :
// Create the logging infrastructure.
log_socket
=
create_socket
(
ZMQ_PUB
);
zmq_assert
(
log_socket
);
int
rc
=
log_socket
->
bind
(
"
inproc
://log"
);
int
rc
=
log_socket
->
bind
(
"
sys
://log"
);
zmq_assert
(
rc
==
0
);
}
...
...
src/socket_base.cpp
View file @
651c1adc
...
...
@@ -143,7 +143,7 @@ int zmq::socket_base_t::check_protocol (const std::string &protocol_)
{
// First check out whether the protcol is something we are aware of.
if
(
protocol_
!=
"inproc"
&&
protocol_
!=
"ipc"
&&
protocol_
!=
"tcp"
&&
protocol_
!=
"pgm"
&&
protocol_
!=
"epgm"
)
{
protocol_
!=
"pgm"
&&
protocol_
!=
"epgm"
&&
protocol_
!=
"sys"
)
{
errno
=
EPROTONOSUPPORT
;
return
-
1
;
}
...
...
@@ -282,8 +282,8 @@ int zmq::socket_base_t::bind (const char *addr_)
if
(
rc
!=
0
)
return
-
1
;
if
(
protocol
==
"inproc"
)
return
register_endpoint
(
addr
ess
.
c_str
()
,
this
);
if
(
protocol
==
"inproc"
||
protocol
==
"sys"
)
return
register_endpoint
(
addr
_
,
this
);
if
(
protocol
==
"tcp"
||
protocol
==
"ipc"
)
{
zmq_listener_t
*
listener
=
new
(
std
::
nothrow
)
zmq_listener_t
(
...
...
@@ -335,14 +335,14 @@ int zmq::socket_base_t::connect (const char *addr_)
if
(
rc
!=
0
)
return
-
1
;
if
(
protocol
==
"inproc"
)
{
if
(
protocol
==
"inproc"
||
protocol
==
"sys"
)
{
// TODO: inproc connect is specific with respect to creating pipes
// as there's no 'reconnect' functionality implemented. Once that
// is in place we should follow generic pipe creation algorithm.
// Find the peer socket.
socket_base_t
*
peer
=
find_endpoint
(
addr
ess
.
c_str
()
);
socket_base_t
*
peer
=
find_endpoint
(
addr
_
);
if
(
!
peer
)
return
-
1
;
...
...
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