/[projects]/smsdaemon/Spooler.h
ViewVC logotype

Contents of /smsdaemon/Spooler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (show annotations) (download)
Sun Dec 7 00:59:05 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 215 byte(s)
Added spooling (queing) function, with a standalone application(smsqueue) to put new messages 
into the spool dir.

1 #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