allow override of sendBE and test all combinations

Cross-testing client/server with all byte order combinations.
This commit is contained in:
Michael Davidsaver
2022-05-18 12:08:40 -07:00
parent cce797263d
commit ec8d0df1b3
8 changed files with 105 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace client {
DEFINE_LOGGER(io, "pvxs.client.io");
Connection::Connection(const std::shared_ptr<ContextImpl>& context, const SockAddr& peerAddr)
:ConnBase (true,
:ConnBase (true, context->effective.sendBE(),
bufferevent_socket_new(context->tcp_loop.base, -1, BEV_OPT_CLOSE_ON_FREE|BEV_OPT_DEFER_CALLBACKS),
peerAddr)
,context(context)