nntp.c File Reference

Check the server for greeting code 200 and then send a QUIT and check for code 205. More...

Go to the source code of this file.

Functions

int check_nntp (Port_T p)


Detailed Description

Check the server for greeting code 200 and then send a QUIT and check for code 205.

If alive return TRUE, else, return FALSE.

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

Definition in file nntp.c.


Function Documentation

int check_nntp Port_T    p
 

Definition at line 41 of file nntp.c.

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