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
@@ -44,7 +44,7 @@ DEFINE_LOGGER(connio, "pvxs.tcp.io");
DEFINE_LOGGER(remote, "pvxs.remote.log");
ServerConn::ServerConn(ServIface* iface, evutil_socket_t sock, struct sockaddr *peer, int socklen)
:ConnBase(false,
:ConnBase(false, iface->server->effective.sendBE(),
bufferevent_socket_new(iface->server->acceptor_loop.base, sock, BEV_OPT_CLOSE_ON_FREE|BEV_OPT_DEFER_CALLBACKS),
SockAddr(peer))
,iface(iface)