Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

popserver.h File Reference

Pop3 server with driver support and multiple threads. More...

Go to the source code of this file.

Data Structures

struct  asyncop_t
 the state of the async operation More...

struct  popserver_functions_t
 These functions are called by the pop3 server. More...


Error codes

#define POPSERVER_ERR_OK   0
#define POPSERVER_ERR_SYNTAX   1
#define POPSERVER_ERR_NETWORK   2
#define POPSERVER_ERR_AUTH   3
#define POPSERVER_ERR_INTERNAL   4
#define POPSERVER_ERR_NOMSG   5
#define POPSERVER_ERR_LOCKED   6
#define POPSERVER_ERR_EOF   7
#define POPSERVER_ERR_TOOFAST   8
#define POPSERVER_ERR_UNKNOWN   9

Features flags

#define POPSERVER_FLAG_STANDARD   0
#define POPSERVER_FLAG_NOTOP   1

Defines

#define uid_t   int
#define gid_t   int

Enumerations

enum  asyncstate_e { ASYNCOP_NEW, ASYNCOP_OLD }
 the state of an async operation More...


Functions

void popserver_start (struct popserver_functions_t *f, struct in_addr address, unsigned short port, int maxthreads, int(*set_rights)(uid_t, gid_t), uid_t uid, gid_t gid, int flag)
 Starts a pop3 server that uses functions in f and listens on port port.


Detailed Description

Pop3 server with driver support and multiple threads.

Author:
Enrico Tassi   <sorry guy>

Definition in file popserver.h.


Define Documentation

#define gid_t   int
 

Definition at line 26 of file popserver.h.

#define POPSERVER_ERR_AUTH   3
 

Definition at line 56 of file popserver.h.

#define POPSERVER_ERR_EOF   7
 

Definition at line 60 of file popserver.h.

#define POPSERVER_ERR_INTERNAL   4
 

Definition at line 57 of file popserver.h.

#define POPSERVER_ERR_LOCKED   6
 

Definition at line 59 of file popserver.h.

#define POPSERVER_ERR_NETWORK   2
 

Definition at line 55 of file popserver.h.

#define POPSERVER_ERR_NOMSG   5
 

Definition at line 58 of file popserver.h.

#define POPSERVER_ERR_OK   0
 

Definition at line 53 of file popserver.h.

#define POPSERVER_ERR_SYNTAX   1
 

Definition at line 54 of file popserver.h.

#define POPSERVER_ERR_TOOFAST   8
 

Definition at line 61 of file popserver.h.

#define POPSERVER_ERR_UNKNOWN   9
 

Definition at line 62 of file popserver.h.

#define POPSERVER_FLAG_NOTOP   1
 

Definition at line 68 of file popserver.h.

#define POPSERVER_FLAG_STANDARD   0
 

Definition at line 67 of file popserver.h.

#define uid_t   int
 

Definition at line 25 of file popserver.h.


Enumeration Type Documentation

enum asyncstate_e
 

the state of an async operation

Enumeration values:
ASYNCOP_NEW 
ASYNCOP_OLD 

Definition at line 32 of file popserver.h.


Function Documentation

void popserver_start struct popserver_functions_t f,
struct in_addr  address,
unsigned short  port,
int  maxthreads,
int(*  set_rights)(uid_t, gid_t),
uid_t  uid,
gid_t  gid,
int  flag
 

Starts a pop3 server that uses functions in f and listens on port port.

Parameters:
set_rights a function to loose rights called after bind(). This function must return 0 on success.
maxthreads Upper bound to thread launched to manage incoming connections.


Generated on Wed May 5 15:48:04 2004 for LiberoPOPs by doxygen 1.3.6-20040222