comparison src/context.h @ 320:e27c24c1974a

more smtp verify logging
author Carl Byington <carl@five-ten-sg.com>
date Sat, 17 Dec 2016 09:46:40 -0800
parents f5547e7b3a09
children e172dc10fe24
comparison
equal deleted inserted replaced
319:0ed4de7ce05b 320:e27c24c1974a
89 time_t last_err; // time of last socket error 89 time_t last_err; // time of last socket error
90 pthread_mutex_t mutex; // protect the lists of sockets and timestamps 90 pthread_mutex_t mutex; // protect the lists of sockets and timestamps
91 smtp_list connections;// open sockets, ready to be used 91 smtp_list connections;// open sockets, ready to be used
92 public: 92 public:
93 VERIFY(const char *h); 93 VERIFY(const char *h);
94 void log(const char *m, const char *q, const char *v);
94 void closer(); // if the oldest socket is ancient, close it 95 void closer(); // if the oldest socket is ancient, close it
95 SMTP *get_connection(const char *queueid); 96 SMTP *get_connection(const char *queueid);
96 void put_connection(SMTP *conn); 97 void put_connection(SMTP *conn);
97 bool ok(const char *queueid, const char *from, const char *to); 98 bool ok(const char *queueid, const char *from, const char *to);
98 }; 99 };