2
* iptools.h -- Some useful TCP/IP utils
4
* iptools.h is a part of binkd project
6
* Copyright (C) 1997 Dima Maloff, 5047/13
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. See COPYING.
15
* $Id: iptools.h,v 2.0 2001/01/10 12:12:38 gul Exp $
18
* Revision 2.0 2001/01/10 12:12:38 gul
19
* Binkd is under CVS again
21
* Revision 1.2 1997/10/23 04:00:57 mff
24
* Revision 1.1 1997/03/28 06:52:14 mff
30
* Finds ASCIIZ address
32
const char *get_hostname (struct sockaddr_in * addr, char *host, int len);
34
void copy_hostent(struct hostent *dest, struct hostent *src);
37
* Sets non-blocking mode for a given socket
39
void setsockopts (SOCKET s);
42
* Find the port number (in the host byte order) by a port number string or
43
* a service name. Find_port ("") will return binkp's port from
44
* /etc/services or even (if there is no binkp entry) 24554.
47
int find_port (char *s);