protocol.h File Reference

Go to the source code of this file.

Defines

#define P_DEFAULT   1
#define P_HTTP   2
#define P_FTP   3
#define P_SMTP   4
#define P_POP   5
#define P_IMAP   6
#define P_NNTP   7

Functions

void gc_protocols ()
void * create_default ()
void * create_http ()
void * create_ftp ()
void * create_smtp ()
void * create_pop ()
void * create_imap ()
void * create_nntp ()
int check_default (Port_T)
int check_http (Port_T)
int check_ftp (Port_T)
int check_smtp (Port_T)
int check_pop (Port_T)
int check_imap (Port_T)
int check_nntp (Port_T)


Define Documentation

#define P_DEFAULT   1
 

Definition at line 30 of file protocol.h.

#define P_FTP   3
 

Definition at line 32 of file protocol.h.

#define P_HTTP   2
 

Definition at line 31 of file protocol.h.

#define P_IMAP   6
 

Definition at line 35 of file protocol.h.

#define P_NNTP   7
 

Definition at line 36 of file protocol.h.

#define P_POP   5
 

Definition at line 34 of file protocol.h.

#define P_SMTP   4
 

Definition at line 33 of file protocol.h.


Function Documentation

int check_default Port_T   
 

Definition at line 33 of file default.c.

int check_ftp Port_T   
 

Definition at line 42 of file ftp.c.

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

int check_http Port_T   
 

Definition at line 70 of file http.c.

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

int check_imap Port_T   
 

Definition at line 41 of file imap.c.

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

int check_nntp Port_T   
 

Definition at line 41 of file nntp.c.

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

int check_pop Port_T   
 

Definition at line 41 of file pop.c.

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

int check_smtp Port_T   
 

Definition at line 42 of file smtp.c.

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

void* create_default  
 

Definition at line 69 of file protocol.c.

References NEW.

void* create_ftp  
 

Definition at line 97 of file protocol.c.

References NEW.

void* create_http  
 

Definition at line 83 of file protocol.c.

References NEW.

void* create_imap  
 

Definition at line 139 of file protocol.c.

References NEW.

void* create_nntp  
 

Definition at line 153 of file protocol.c.

References NEW.

void* create_pop  
 

Definition at line 125 of file protocol.c.

References NEW.

void* create_smtp  
 

Definition at line 111 of file protocol.c.

References NEW.

void gc_protocols  
 

Definition at line 56 of file protocol.c.

Referenced by gc().