-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpmta_connection.h
48 lines (40 loc) · 1.12 KB
/
pmta_connection.h
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
/**
* @file pmta_connection.h
* @date Sep 29, 2010 v0.1
* @date Jul 4, 2013 Major code refactoring, use object handlers instead of magic methods
* @date Jul 11, 2013 v0.4
* @author Vladimir Kolesnikov <[email protected]>
* @brief Exposes @c PmtaConnection class
* @details
@code{.php}
class PmtaConnection
{
const LOCAL_SERVER = "127.0.0.1";
const DEFAULT_PORT = 25;
private $connection;
private $server;
private $port;
private $username;
private $password;
public function __construct($server = '127.0.0.1', $port = 25, $username = null, $password = null);
public function __destruct();
public function getLastError();
public function submitMessage(PmtaMessage $message);
public function __get($property);
public function __isset($property);
private function __clone();
}
@endcode
*/
#ifdef DOXYGEN
# undef PMTA_CONNECTION_H
#endif
#ifndef PMTA_CONNECTION_H
#define PMTA_CONNECTION_H
#include "php_pmta.h"
/**
* @brief Registers @c PmtaConnection class
* @param tsrm_ls Internally used by Zend
*/
PHPPMTA_VISIBILITY_HIDDEN extern void pmtaconn_register_class(TSRMLS_D);
#endif /* PMTA_CONNECTION_H */