1 /***************************************************************************\
3 * BitlBee - An IRC to IM gateway *
4 * Utility functions for file transfer *
6 * Copyright 2008 Uli Meis <a.sporto+bee@gmail.com> *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
18 * You should have received a copy of the GNU General Public License along *
19 * with this program; if not, write to the Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
22 \***************************************************************************/
24 #ifndef AI_NUMERICSERV
25 #define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
28 /* Some ifdefs for ulibc and apparently also BSD (Thanks to Whoopie) */
30 #include <sys/param.h>
32 #define HOST_NAME_MAX MAXHOSTNAMELEN
34 #define HOST_NAME_MAX 255
38 /* This function should be used with care. host should be AT LEAST a
39 char[HOST_NAME_MAX+1] and port AT LEAST a char[6]. */
40 int ft_listen( struct sockaddr_storage
*saddr_ptr
, char *host
, char *port
, int copy_fd
, int for_bitlbee_client
, char **errptr
);