smtp.c File Reference

Check the server for greeting code 220 and then send QUIT and check for code 221. More...

Go to the source code of this file.

Functions

int check_smtp (Port_T p)


Detailed Description

Check the server for greeting code 220 and then send QUIT and check for code 221.

If alive return TRUE, else, return FALSE.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com> , Michael Amster, <mamster@webeasy.com>
Version:
$Id: smtp.c,v 1.6 2002/08/26 16:28:40 chopp Exp $

Definition in file smtp.c.


Function Documentation

int check_smtp Port_T    p
 

Definition at line 42 of file smtp.c.

References chomp(), log(), sock_recv(), sock_send(), myport::socket, and STRERROR.