Skip to content
Snippets Groups Projects
Unverified Commit b1ce0d7a authored by Bensong Liu's avatar Bensong Liu
Browse files

save before going back home

parent a46bb058
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,11 @@ public: ...@@ -31,7 +31,11 @@ public:
ptrOutbound = nullptr; // TODO ptrOutbound = nullptr; // TODO
else if (outboundConfig.starts_with("misc")) else if (outboundConfig.starts_with("misc"))
ptrOutbound = nullptr; // TODO ptrOutbound = nullptr; // TODO
}
~Forwarder() {
if (ptrInbound) delete ptrInbound;
if (ptrOutbound) delete ptrOutbound;
} }
......
...@@ -35,7 +35,7 @@ namespace Protocols { ...@@ -35,7 +35,7 @@ namespace Protocols {
char buffer[DGRAM_BUFFER_SIZE]; char buffer[DGRAM_BUFFER_SIZE];
// WARN: If you want to modify this program to work for both TCP and UDP, PLEASE use rlib::sockIO::recv instead of fixed buffer. // WARN: If you want to modify this program to work for both TCP and UDP, PLEASE use rlib::sockIO::recv instead of fixed buffer.
rlog.info("PlainListener listening [{}]:{} ...", listenAddr, listenPort); rlog.info("PlainListener listening InboundPort [{}]:{} ...", listenAddr, listenPort);
while (true) { while (true) {
// ... // ...
// epoll // epoll
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment