# HG changeset patch # User František Kučera # Date 1661028667 -7200 # Node ID 17cea3a6d33ff89afcc387d2f48d78caa2cd5c9a # Parent 9fcd3ff6bd6e8f26b60b725fa5c37d198f60cb37 comment on MSGSocket + move message metadata to correct class diff -r 9fcd3ff6bd6e -r 17cea3a6d33f src/Socket.cpp --- a/src/Socket.cpp Sat Aug 20 22:13:40 2022 +0200 +++ b/src/Socket.cpp Sat Aug 20 22:51:07 2022 +0200 @@ -135,6 +135,9 @@ return std::shared_ptr(new SocketClass(remoteAddresses[0], moreArgs...)); } +/** + * abstract class for sockets that use sendmsg() / recvmsg() + */ class MSGSocket : public Socket { protected: FD socket; diff -r 9fcd3ff6bd6e -r 17cea3a6d33f src/Socket.h --- a/src/Socket.h Sat Aug 20 22:13:40 2022 +0200 +++ b/src/Socket.h Sat Aug 20 22:51:07 2022 +0200 @@ -72,6 +72,11 @@ IncomingMessage(const std::string& data) : Message(data) { } + std::string remoteHost; + in_port_t remotePort = 0; + pid_t remotePID = 0; + uid_t remoteUID = 0; + gid_t remoteGID = 0; }; class OutgoingMessage : public Message { @@ -80,11 +85,6 @@ OutgoingMessage(const std::string& data) : Message(data) { } - std::string remoteHost; - std::string remotePort; - pid_t remotePID; - uid_t remoteUID; - gid_t remoteGID; }; class Socket {