.. _program_listing_file_include_input_trashbin_SubMain.cpp: Program Listing for File SubMain.cpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/input/trashbin/SubMain.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "PDJE_Crypto.hpp" #include "PSKPipe.hpp" // #include "SubProcess.hpp" #include int main() { try { startlog(); // TODO - TEST RTKIT // auto tokenstr = PDJE_CRYPTO::PSKPipe::GetTokenFromSTDPipe(); // std::istringstream spstrm(tokenstr); // std::string pskhex; // std::string mfirst; // std::string lfirst; // std::string msecond; // std::string lsecond; // spstrm >> pskhex >> mfirst >> lfirst >> msecond >> lsecond; // auto psk = PDJE_CRYPTO::PSK(); // psk.Decode(pskhex); // PDJE_IPC::SUBPROC::TXRXListener serv( // psk, mfirst, lfirst, msecond, lsecond); // serv.BlockedListen(); // if (serv.KillCheck) { // return 0; // } // serv.LoopTrig(); } catch (const std::exception &e) { critlog(e.what()); } return 0; }