Commit 81818401 authored by Martin Hurton's avatar Martin Hurton

Update PGM with recent changes

parent 9ea20b82
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "pgm_receiver.hpp" #include "pgm_receiver.hpp"
#include "session_base.hpp" #include "session_base.hpp"
#include "v1_decoder.hpp"
#include "stdint.hpp" #include "stdint.hpp"
#include "wire.hpp" #include "wire.hpp"
#include "err.hpp" #include "err.hpp"
...@@ -227,8 +228,8 @@ void zmq::pgm_receiver_t::in_event () ...@@ -227,8 +228,8 @@ void zmq::pgm_receiver_t::in_event ()
it->second.joined = true; it->second.joined = true;
// Create and connect decoder for the peer. // Create and connect decoder for the peer.
it->second.decoder = new (std::nothrow) decoder_t (0, it->second.decoder = new (std::nothrow)
options.maxmsgsize); v1_decoder_t (0, options.maxmsgsize);
alloc_assert (it->second.decoder); alloc_assert (it->second.decoder);
it->second.decoder->set_msg_sink (session); it->second.decoder->set_msg_sink (session);
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "io_object.hpp" #include "io_object.hpp"
#include "i_engine.hpp" #include "i_engine.hpp"
#include "options.hpp" #include "options.hpp"
#include "decoder.hpp" #include "v1_decoder.hpp"
#include "pgm_socket.hpp" #include "pgm_socket.hpp"
namespace zmq namespace zmq
...@@ -85,7 +85,7 @@ namespace zmq ...@@ -85,7 +85,7 @@ namespace zmq
struct peer_info_t struct peer_info_t
{ {
bool joined; bool joined;
decoder_t *decoder; v1_decoder_t *decoder;
}; };
struct tsi_comp struct tsi_comp
...@@ -113,7 +113,7 @@ namespace zmq ...@@ -113,7 +113,7 @@ namespace zmq
zmq::session_base_t *session; zmq::session_base_t *session;
// Most recently used decoder. // 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. // Number of bytes not consumed by the decoder due to pipe overflow.
size_t pending_bytes; size_t pending_bytes;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "i_engine.hpp" #include "i_engine.hpp"
#include "options.hpp" #include "options.hpp"
#include "pgm_socket.hpp" #include "pgm_socket.hpp"
#include "encoder.hpp" #include "v1_encoder.hpp"
namespace zmq namespace zmq
{ {
...@@ -76,7 +76,7 @@ namespace zmq ...@@ -76,7 +76,7 @@ namespace zmq
bool has_rx_timer; bool has_rx_timer;
// Message encoder. // Message encoder.
encoder_t encoder; v1_encoder_t encoder;
// PGM socket. // PGM socket.
pgm_socket_t pgm_socket; pgm_socket_t pgm_socket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment