ec_smtp_closeconn
Name
ec_smtp_closeconn — Close an SMTP connection
Synopsis
#include "smtp.h"
| int **ec_smtp_closeconn** ( | dc, | |
| | e, | |
| | conn, | |
| | connh, | |
| | domain, | |
| | binding_slot, | |
| | am, | |
| | now, | |
| | file, | |
| | line); | |
delivery_construct * <var class="pdparam">dc</var>;
Event * <var class="pdparam">e</var>;
connection * <var class="pdparam">conn</var>;
connection_handle * <var class="pdparam">connh</var>;
domain_record * <var class="pdparam">domain</var>;
ec_binding_slot <var class="pdparam">binding_slot</var>;
address_metrics * <var class="pdparam">am</var>;
struct timeval * <var class="pdparam">now</var>;
const char * <var class="pdparam">file</var>;
int <var class="pdparam">line</var>;
Description
Close an SMTP connection.
Note
You can use the following macro
#define CLOSECONN return ec_smtp_closeconn(dc, e, conn, connh, domain, binding_slot, am,
now, __FILE__, __LINE__);
- dc
-
The address of a
delivery_constructfor the connection. For more information on this data structure see “delivery_construct”. - e
-
The address of an
event. For more information on this data structure see “Event”. - conn
-
The address of a
connection. For more information on this data structure see “connection”. - connh
-
The address of a
connection_handle. For more information on this data structure see “connection_handle”. - domain
-
A pointer to a “domain_record” struct.
- binding_slot
-
The binding slot.
- am
-
A pointer to a “address_metrics” struct.
- now
-
A pointer to a timeval struct, which may be NULL.
**Configuration Change. ** Prior to version 3.0, NULL was not an allowed value.
- file
-
The filename that invoked the call.
- line
-
The line number of the file that invoked the call.
This function returns 0.
It is only legal to call this function in the Scheduler thread. thread.