libspopc.h File Reference

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
Include dependency graph for libspopc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  popsession

Defines

#define DOTBEGIN(s)   ((s)[0]=='\n'&&(s)[1]=='.')
#define popbytes(s)   ((s)->bytes)
#define popmsgsize(s, i)   ((s)->list[(i)])
#define popmsguid(s, i)   ((s)->uidl[(i)])
#define popnum(s)   ((s)->last)
#define popsetdel(s)   ((s)->del=1)
#define popsetundel(s)   ((s)->del=0)
#define SOCKET_TIMEOUT   15
#define TCPBUFLEN   512

Enumerations

enum  popstate {
  AUTHORIZATION,
  TRANSACTION,
  UPDATE
}

Functions

int dotline (char *buf)
void freelistarray (int *array)
void freemsg (char *msg)
void freeuidlarray (char **arrray)
int * list2array (char *poplist)
int listi2size (char *resp)
char * nextline (char *string)
char * pop3_apop (int sock, const char *name, const char *digest)
char * pop3_connect (int sock, struct sockaddr_in *connection)
char * pop3_dele (int sock, int id)
void pop3_disconnect (int sock)
int pop3_error (char *string)
char * pop3_list (int sock, int id)
char * pop3_noop (int sock)
char * pop3_pass (int sock, const char *pw)
int pop3_prepare (const char *servername, const int port, struct sockaddr_in *connection, struct hostent *server)
char * pop3_quit (int sock)
char * pop3_retr (int sock, int id)
char * pop3_rset (int sock)
char * pop3_stat (int sock)
char * pop3_top (int sock, int id, int lines)
char * pop3_uidl (int sock, int id)
char * pop3_user (int sock, const char *name)
char * popbegin (const char *servername, const char *user, const char *pass, popsession **sp)
int popcancel (popsession *session)
int popdelmsg (popsession *session, int id)
void popend (popsession *session)
char * popgethead (popsession *session, int id)
char * popgetmsg (popsession *session, int id)
char * recv_rest (int sock, char *buf, int cs, int bs)
char * retr2msg (char *data)
int stat2bytes (char *resp)
int stat2last (char *resp)
char ** uidl2array (char *resp)
char * uidli2sig (char *resp)

Define Documentation

#define DOTBEGIN (  )     ((s)[0]=='\n'&&(s)[1]=='.')

Definition at line 99 of file libspopc.h.

#define popbytes (  )     ((s)->bytes)

Definition at line 181 of file libspopc.h.

#define popmsgsize ( s,
 )     ((s)->list[(i)])

Definition at line 197 of file libspopc.h.

#define popmsguid ( s,
 )     ((s)->uidl[(i)])

Definition at line 202 of file libspopc.h.

#define popnum (  )     ((s)->last)

Definition at line 185 of file libspopc.h.

#define popsetdel (  )     ((s)->del=1)

Definition at line 189 of file libspopc.h.

#define popsetundel (  )     ((s)->del=0)

Definition at line 193 of file libspopc.h.

#define SOCKET_TIMEOUT   15

Definition at line 27 of file libspopc.h.

#define TCPBUFLEN   512

Definition at line 28 of file libspopc.h.


Enumeration Type Documentation

enum popstate
Enumerator:
AUTHORIZATION 
TRANSACTION 
UPDATE 

Definition at line 166 of file libspopc.h.


Function Documentation

int dotline ( char *  buf  ) 

Definition at line 17 of file parsing.c.

Here is the caller graph for this function:

void freelistarray ( int *  array  ) 

Definition at line 128 of file format.c.

Here is the caller graph for this function:

void freemsg ( char *  msg  ) 

Definition at line 70 of file format.c.

void freeuidlarray ( char **  arrray  ) 

Definition at line 248 of file format.c.

Here is the caller graph for this function:

int* list2array ( char *  poplist  ) 

Definition at line 75 of file format.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int listi2size ( char *  resp  ) 

Definition at line 134 of file format.c.

Here is the call graph for this function:

char* nextline ( char *  string  ) 

Definition at line 20 of file format.c.

Here is the caller graph for this function:

char* pop3_apop ( int  sock,
const char *  name,
const char *  digest 
)

Definition at line 392 of file queries.c.

Here is the call graph for this function:

char* pop3_connect ( int  sock,
struct sockaddr_in *  connection 
)

Definition at line 80 of file session.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_dele ( int  sock,
int  id 
)

Definition at line 259 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void pop3_disconnect ( int  sock  ) 

Definition at line 107 of file session.c.

Here is the caller graph for this function:

int pop3_error ( char *  string  ) 

Definition at line 42 of file parsing.c.

Here is the caller graph for this function:

char* pop3_list ( int  sock,
int  id 
)

Definition at line 162 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_noop ( int  sock  ) 

Definition at line 273 of file queries.c.

Here is the call graph for this function:

char* pop3_pass ( int  sock,
const char *  pw 
)

Definition at line 83 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int pop3_prepare ( const char *  servername,
const int  port,
struct sockaddr_in *  connection,
struct hostent *  server 
)

Definition at line 32 of file session.c.

Here is the caller graph for this function:

char* pop3_quit ( int  sock  ) 

Definition at line 91 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_retr ( int  sock,
int  id 
)

Definition at line 214 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_rset ( int  sock  ) 

Definition at line 280 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_stat ( int  sock  ) 

Definition at line 98 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_top ( int  sock,
int  id,
int  lines 
)

Definition at line 287 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_uidl ( int  sock,
int  id 
)

Definition at line 332 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* pop3_user ( int  sock,
const char *  name 
)

Definition at line 75 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* popbegin ( const char *  servername,
const char *  user,
const char *  pass,
popsession **  sp 
)

Definition at line 27 of file objects.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int popcancel ( popsession session  ) 

Definition at line 229 of file objects.c.

Here is the call graph for this function:

int popdelmsg ( popsession session,
int  id 
)

Definition at line 179 of file objects.c.

Here is the call graph for this function:

void popend ( popsession session  ) 

Definition at line 277 of file objects.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* popgethead ( popsession session,
int  id 
)

Definition at line 124 of file objects.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* popgetmsg ( popsession session,
int  id 
)

Definition at line 150 of file objects.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* recv_rest ( int  sock,
char *  buf,
int  cs,
int  bs 
)

Definition at line 105 of file queries.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* retr2msg ( char *  data  ) 

Definition at line 32 of file format.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int stat2bytes ( char *  resp  ) 

Definition at line 168 of file format.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int stat2last ( char *  resp  ) 

Definition at line 149 of file format.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char** uidl2array ( char *  resp  ) 

Definition at line 187 of file format.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* uidli2sig ( char *  resp  ) 

Definition at line 260 of file format.c.

Here is the call graph for this function:

Generated on Wed Feb 29 22:51:41 2012 for CXXUtilities by  doxygen 1.6.3