Archived
1
0

* more nntpchan-daemon code

* fix keepalive
This commit is contained in:
Jeff Becker
2017-10-09 11:48:10 -04:00
parent dc2de0fbc9
commit e67e7a20bd
57 changed files with 987 additions and 576 deletions

View File

@@ -1,5 +1,5 @@
#include "exec_frontend.hpp"
#include "message.hpp"
#include "sanitize.hpp"
#include <cassert>
#include <iostream>
@@ -7,7 +7,7 @@
int main(int , char * [])
{
nntpchan::Frontend * f = new nntpchan::ExecFrontend("./contrib/nntpchan.sh");
nntpchan::Frontend_ptr f(new nntpchan::ExecFrontend("./contrib/nntpchan.sh"));
assert(nntpchan::IsValidMessageID("<a28a71493831188@web.oniichan.onion>"));
assert(f->AcceptsNewsgroup("overchan.test"));
std::cout << "all good" << std::endl;