Logo Search packages:      
Sourcecode: nbsmtp version File versions  Download package

int smtp_okay ( servinfo_t serverinfo  ) 

Gets a line using smtp_read and if it returns 2 we return 1 (borrowed from sSMTP).

Parameters:
[in] serverinfo A pointer to a servinfo_t struct with the socket info
Returns:
1 if smtp_read returns 2 and 0 in other case
See also:
smtp_read()

Definition at line 127 of file smtp.c.

References smtp_read().

Referenced by nbsmtp_auth(), nbsmtp_data(), nbsmtp_ehlo(), nbsmtp_helo(), nbsmtp_rcpts(), and send_mail().

{
      char response[BUF_SIZE];

      return((smtp_read(serverinfo,response)==2) ? 1 : 0);
}


Generated by  Doxygen 1.6.0   Back to index