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
81818401
Commit
81818401
authored
Mar 18, 2013
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PGM with recent changes
parent
9ea20b82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
pgm_receiver.cpp
src/pgm_receiver.cpp
+3
-2
pgm_receiver.hpp
src/pgm_receiver.hpp
+3
-3
pgm_sender.hpp
src/pgm_sender.hpp
+2
-2
No files found.
src/pgm_receiver.cpp
View file @
81818401
...
...
@@ -29,6 +29,7 @@
#include "pgm_receiver.hpp"
#include "session_base.hpp"
#include "v1_decoder.hpp"
#include "stdint.hpp"
#include "wire.hpp"
#include "err.hpp"
...
...
@@ -227,8 +228,8 @@ void zmq::pgm_receiver_t::in_event ()
it
->
second
.
joined
=
true
;
// Create and connect decoder for the peer.
it
->
second
.
decoder
=
new
(
std
::
nothrow
)
decoder_t
(
0
,
options
.
maxmsgsize
);
it
->
second
.
decoder
=
new
(
std
::
nothrow
)
v1_decoder_t
(
0
,
options
.
maxmsgsize
);
alloc_assert
(
it
->
second
.
decoder
);
it
->
second
.
decoder
->
set_msg_sink
(
session
);
}
...
...
src/pgm_receiver.hpp
View file @
81818401
...
...
@@ -34,7 +34,7 @@
#include "io_object.hpp"
#include "i_engine.hpp"
#include "options.hpp"
#include "decoder.hpp"
#include "
v1_
decoder.hpp"
#include "pgm_socket.hpp"
namespace
zmq
...
...
@@ -85,7 +85,7 @@ namespace zmq
struct
peer_info_t
{
bool
joined
;
decoder_t
*
decoder
;
v1_
decoder_t
*
decoder
;
};
struct
tsi_comp
...
...
@@ -113,7 +113,7 @@ namespace zmq
zmq
::
session_base_t
*
session
;
// Most recently used decoder.
decoder_t
*
mru_decoder
;
v1_
decoder_t
*
mru_decoder
;
// Number of bytes not consumed by the decoder due to pipe overflow.
size_t
pending_bytes
;
...
...
src/pgm_sender.hpp
View file @
81818401
...
...
@@ -33,7 +33,7 @@
#include "i_engine.hpp"
#include "options.hpp"
#include "pgm_socket.hpp"
#include "encoder.hpp"
#include "
v1_
encoder.hpp"
namespace
zmq
{
...
...
@@ -76,7 +76,7 @@ namespace zmq
bool
has_rx_timer
;
// Message encoder.
encoder_t
encoder
;
v1_
encoder_t
encoder
;
// PGM socket.
pgm_socket_t
pgm_socket
;
...
...
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