home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / fax-3.2.1 / lib / libutil / net.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-31  |  1.3 KB  |  67 lines

  1. /*
  2.   This file is part of the NetFax system.
  3.  
  4.   (c) Copyright 1989 by David M. Siegel and Sundar Narasimhan.
  5.       All rights reserved.
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation.
  10.  
  11.     This program is distributed in the hope that it will be useful, 
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of 
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #ifndef INCneth
  22. #define INCneth 1
  23.  
  24. /*
  25.   Prototypes:
  26. */
  27.  
  28. int is_my_in_addr(
  29. #ifdef _PROTO
  30.     struct in_addr *addr
  31. #endif
  32. );
  33.  
  34. int service_get_portnum(
  35. #ifdef _PROTO
  36.     char *service,
  37.     char *proto
  38. #endif
  39. );
  40.  
  41. int hostname_get_addr(
  42. #ifdef _PROTO
  43.     char *hostname,
  44.     char *addr,
  45.     int len,
  46.     int type
  47. #endif
  48. );
  49.  
  50. int addr_get_hostname(
  51. #ifdef _PROTO
  52.     char *addr,
  53.     int len,
  54.     int type,
  55.     char *buf,
  56.     int buflen
  57. #endif
  58. );
  59.  
  60. char *in_addr_hostname(
  61. #ifdef _PROTO
  62.     struct in_addr *addr
  63. #endif
  64. );
  65.  
  66. #endif
  67.