/*
 * agenda_server.h: Definition of struct diary_entry and error types
 * 
 * @author: Alexander Mikroyannidis
 * web site: http://www.geocities.com/alexmikro
 * e-mail: alexmikro@hotmail.com
 *
 */

typedef struct diary_entry* entry_pointer;
struct diary_entry{
	char first_name[21];
	char last_name[21];
	char email[41];
	char phone[16];
	entry_pointer next;
	entry_pointer previous;
};

#define WSA_ERR 1
#define SOCKET_ERR 2
#define BIND_ERR 3
#define LISTEN_ERR 4
#define ACCEPT_ERR 5
#define RECV_ERR 6
#define SEND_ERR 7
#define CLIENT_DISCONNECTED 8
#define OPEN_FILE_ERR 9
#define READ_FILE_ERR 10
#define INSERT_ENTRY_ERR 11