#ifndef __NETWORKING_H__
#define __NETWORKING_H__ 1
/*
elmo - ELectronic Mail Operator
Copyright (C) 2002, 2003, 2004 rzyjontko
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
----------------------------------------------------------------------
*/
/****************************************************************************
* INTERFACE REQUIRED HEADERS
****************************************************************************/
/****************************************************************************
* INTERFACE DEFINITIONS / ENUMERATIONS / SIMPLE TYPEDEFS
****************************************************************************/
/****************************************************************************
* INTERFACE CLASS PROTOTYPES / EXTERNAL CLASS REFERENCES
****************************************************************************/
/****************************************************************************
* INTERFACE STRUCTURES / UTILITY CLASSES
****************************************************************************/
/****************************************************************************
* INTERFACE DATA DECLARATIONS
****************************************************************************/
/****************************************************************************
* INTERFACE FUNCTION PROTOTYPES
****************************************************************************/
extern void net_init (void);
extern void net_free_resources (void);
extern int net_open (const char *hostname, unsigned short port, int secure,
void (*cleanup)(int));
extern void net_close (int nd);
extern void net_recv_data (int nd, const char *re, void (*fun)(char *, int));
extern void net_send_data (int nd, void *buf, int size, void (*fun)(int));
extern void net_combo (int nd, void *buf, int size, const char *re,
void (*fun)(char *, int));
extern void net_expect (int nd, int bytes, char *desc, ...);
extern void net_send_progress (int nd, char *desc, ...);
extern char *net_server_address (int nd);
/****************************************************************************
* INTERFACE OBJECT CLASS DEFINITIONS
****************************************************************************/
/****************************************************************************
* INTERFACE TRAILING HEADERS
****************************************************************************/
/****************************************************************************
*
* END HEADER networking.h
*
****************************************************************************/
#endif
syntax highlighted by Code2HTML, v. 0.9.1