1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/************************************************************************
* IRC - Internet Relay Chat, include/s_bsd.h
* Copyright (C) 1992 Darren Reed
*
* 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; either version 1, or (at your option)
* any later version.
*
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*
*
*/
#ifndef INCLUDED_s_bsd_h
#define INCLUDED_s_bsd_h
#ifndef INCLUDED_sys_types_h
#include <sys/types.h>
#define INCLUDED_sys_types_h
#endif
#define READBUF_SIZE 16384 /* used in s_bsd *AND* s_zip.c ! */
struct Client;
struct ConfItem;
struct hostent;
struct DNSReply;
struct Listener;
extern int highest_fd;
extern int readcalls;
extern const char* const NONB_ERROR_MSG;
extern const char* const SETBUF_ERROR_MSG;
extern void add_connection(struct Listener*, int);
extern int check_client(struct Client*, char *,char **);
extern void close_connection(struct Client*);
extern void close_all_connections(void);
extern int connect_server(struct ConfItem*, struct Client*, struct DNSReply*);
extern void get_my_name(struct Client *, char *, int);
extern void init_netio(void);
extern int read_message (time_t, int);
extern void report_error(const char*, const char*, int);
extern int set_non_blocking(int);
extern int set_sock_buffers(int, int);
extern int send_queued(struct Client*);
extern int deliver_it(struct Client*, const char*, int);
#endif /* INCLUDED_s_bsd_h */
|