Parent Directory | Revision Log
Added spooling (queing) function, with a standalone application(smsqueue) to put new messages into the spool dir.
1 | torben | 132 | #include <string> |
2 | |||
3 | |||
4 | class Spooler | ||
5 | { | ||
6 | public: | ||
7 | void enqueue(std::string recipient, std::string message); | ||
8 | std::string dequeue(); | ||
9 | private: | ||
10 | std::string getSpoolFilename(); | ||
11 | |||
12 | void lock(); | ||
13 | void unlock(); | ||
14 | |||
15 | int fd; | ||
16 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |