tcp_engine renamed to stream engine

The engine was not used exclusively for TCP connections.
Rather it was used to handle any socket with SOCK_STREAM
semantics. The class was renamed to reflect its true function.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-08-16 12:44:34 +02:00
parent 41457e1ff1
commit b3bac17607
9 changed files with 37 additions and 34 deletions

View File

@@ -22,7 +22,7 @@
#include <string>
#include "tcp_connecter.hpp"
#include "tcp_engine.hpp"
#include "stream_engine.hpp"
#include "io_thread.hpp"
#include "platform.hpp"
#include "random.hpp"
@@ -109,7 +109,7 @@ void zmq::tcp_connecter_t::out_event ()
tune_tcp_socket (fd);
// Create the engine object for this connection.
tcp_engine_t *engine = new (std::nothrow) tcp_engine_t (fd, options);
stream_engine_t *engine = new (std::nothrow) stream_engine_t (fd, options);
alloc_assert (engine);
// Attach the engine to the corresponding session object.