smtp_get_state

March 26, 2020 Contributors

Name

smtp_get_state — Fetch a particular SMTP client state

Synopsis

#include "smtp.h"

| smtp_state * **smtp_get_state** ( | state); |   |

int <var class="pdparam">state</var>;

Description

Fetchs a particular SMTP client state passing the state ID.

Parameters

state

The SMTP connection state ID.

Return Values

An smtp_state pointer to the requested SMTP state, NULL if the state was not found. For a description of this structure see “smtp_state”.

Threading

It is only legal to call this function in the Scheduler thread.

See Also

SMTP-related Functions