/usr/include/gdcm-2.2/socketxx/smtp.h is in libgdcm2-dev 2.2.4-1.1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | // smtp.h -*- C++ -*- socket library
// Copyright (C) 1992-1996 Gnanasekaran Swaminathan <gs4t@virginia.edu>
//
// Permission is granted to use at your own risk and distribute this software
// in source and binary forms provided the above copyright notice and this
// paragraph are preserved on all copies. This software is provided "as is"
// with no express or implied warranty.
//
// Version: 12Jan97 1.11
#ifndef SMTP_H
#define SMTP_H
#include <socket++/protocol.h>
class smtp: public protocol {
public:
class smtpbuf : public protocol::protocolbuf {
std::ostream* o; // send all the responses to o
void send_cmd (const char* cmd, const char* s = 0,
const char* p = 0);
void get_response ();
smtpbuf (smtpbuf&);
smtpbuf& operator = (smtpbuf&);
public:
smtpbuf (std::ostream* out = 0)
: protocol::protocolbuf (protocol::tcp), o (out) {}
void send_buf (const char* buf, int buflen);
void helo ();
void quit () { send_cmd ("QUIT"); }
void turn () { send_cmd ("TURN"); }
void rset () { send_cmd ("RSET"); }
void noop () { send_cmd ("NOOP"); }
void vrfy (const char* s) { send_cmd ("VRFY ", s); }
void expn (const char* s) { send_cmd ("EXPN ", s); }
void data () { send_cmd ("DATA"); }
void data (const char* buf, int buflen);
void data (const char* filename); // filename = 0 => stdin
void mail (const char* reverse_path);
void rcpt (const char* forward_path);
void help (const char* s = 0);
virtual void serve_clients (int portno = -1);
virtual const char* rfc_name () const { return "smtp"; }
virtual const char* rfc_doc () const { return "rfc821"; }
};
protected:
smtp(): std::ios (0) {}
public:
smtp (std::ostream* out): std::ios (0) { std::ios::init (new smtpbuf (out)); }
~smtp () { delete std::ios::rdbuf (); std::ios::init (0); }
int get_response (char* buf, int len);
smtpbuf* rdbuf () { return (smtpbuf*) protocol::rdbuf (); }
smtpbuf* operator -> () { return rdbuf (); }
};
extern std::ostream& operator << (std::ostream& o, smtp& s);
#endif // SMTP_H
|