/[cvs]/eggdrop1.9/src/net.h
ViewVC logotype

Contents of /eggdrop1.9/src/net.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Tue Feb 25 10:28:22 2003 UTC (16 years, 3 months ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
File MIME type: text/x-csrc
FILE REMOVED
* Cleanups

1 /*
2 * net.h --
3 */
4 /*
5 * Copyright (C) 2000, 2001, 2002, 2003 Eggheads Development Team
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21 /*
22 * $Id: net.h,v 1.3 2003/01/02 21:33:16 wcc Exp $
23 */
24
25 #ifndef _EGG_NET_H
26 #define _EGG_NET_H
27
28 #include "egg.h" /* IP */
29
30 #define iptolong(a) (0xffffffff & \
31 (long) (htonl((unsigned long) a)))
32
33 #ifdef BORGCUBES
34 # define O_NONBLOCK 00000004 /* POSIX non-blocking I/O */
35 #endif /* BORGUBES */
36
37 IP getmyip();
38 struct in6_addr getmyip6();
39 void neterror(char *);
40 void setsock(int, int);
41 int allocsock(int, int);
42 int getsock(int);
43 void killsock(int);
44 int answer(int, char *, char *, unsigned short *, int);
45 inline int open_listen(int *, int);
46 int open_address_listen(char *, int *);
47 int open_telnet(char *, int);
48 int open_telnet_dcc(int, char *, char *);
49 int open_telnet_raw(int, char *, int);
50 void tputs(int, char *, unsigned int);
51 void dequeue_sockets();
52 int sockgets(char *, int *);
53 void tell_netdebug(int);
54 char *iptostr(IP);
55 char *getlocaladdr(int);
56 int sock_has_data(int, int);
57 int sockoptions(int sock, int operation, int sock_options);
58 int flush_inbuf(int idx);
59
60 #endif /* !_EGG_NET_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23