read_smtp

March 26, 2020

Name

read_smtp — Reads the SMTP response from peer

Synopsis

#include "smtp.h"

| int **read_smtp** ( | dc, |   |
|   | expected_code, |   |
|   | now, |   |
|   | mask); |   |

delivery_construct * <var class="pdparam">dc</var>;
int <var class="pdparam">expected_code</var>;
struct timeval * <var class="pdparam">now</var>;
int * <var class="pdparam">mask</var>;

Description

Reads the SMTP response from peer.

Parameters

dc

The delivery construct. For a description of this data type see “delivery_construct”.

expected_code

The expected SMTP response code from peer.

now

The current time.

mask

The IO mask such as E_READ.

Return Values

On success this function returns a value greater than 0 and on failure a number less than 0.

Threading

It is legal to call this function in any thread.

See Also

SMTP-related Functions