Subversion Repositories HelenOS

Rev

Rev 4578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4578 Rev 4704
Line 61... Line 61...
61
    /** Address, for backward compatiblity.
61
    /** Address, for backward compatiblity.
62
     */
62
     */
63
#define h_addr  h_addr_list[ 0 ]
63
#define h_addr  h_addr_list[ 0 ]
64
};
64
};
65
 
65
 
66
#define HOST_NOT_FOUND  1 /* Authoritative Answer Host not found */
-
 
67
#define TRY_AGAIN   2 /* Non-Authoritive Host not found, or SERVERFAIL */
-
 
68
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
-
 
69
#define NO_DATA     4 /* Valid name, no data record of requested type */
-
 
70
#define NO_ADDRESS  NO_DATA     /* no address, look for MX record */
66
/** @name Host entry address types definitions.
-
 
67
 */
-
 
68
/*@{*/
71
 
69
 
-
 
70
/** Authoritative Answer Host not found address type.
-
 
71
 */
-
 
72
#define HOST_NOT_FOUND  1
-
 
73
 
-
 
74
/** Non-Authoritive Host not found, or SERVERFAIL address type.
-
 
75
 */
-
 
76
#define TRY_AGAIN   2
-
 
77
 
-
 
78
/** Non recoverable errors, FORMERR, REFUSED, NOTIMP address type.
-
 
79
 */
-
 
80
#define NO_RECOVERY 3
-
 
81
 
-
 
82
/** Valid name, no data record of requested type address type.
-
 
83
 */
-
 
84
#define NO_DATA     4
-
 
85
 
-
 
86
/** No address, look for MX record address type.
-
 
87
 */
-
 
88
#define NO_ADDRESS  NO_DATA
-
 
89
 
-
 
90
/*@}*/
-
 
91
 
-
 
92
/** Returns host entry by the host address.
-
 
93
 *  \todo address type?
-
 
94
 *  @param address The host address. Input parameter.
-
 
95
 *  @param len The address length. Input parameter.
-
 
96
 *  @param type The address type. Input parameter.
-
 
97
 *  @returns Host entry information.
-
 
98
 */
72
struct hostent *    gethostbyaddr( const void * address, int len, int type );
99
struct hostent *    gethostbyaddr( const void * address, int len, int type );
-
 
100
 
-
 
101
/** Returns host entry by the host name.
-
 
102
 *  @param name The host name. Input parameter.
-
 
103
 *  @returns Host entry information.
-
 
104
 */
73
struct hostent *    gethostbyname( const char * name );
105
struct hostent *    gethostbyname( const char * name );
74
 
106
 
75
#endif
107
#endif
76
 
108
 
77
/** @}
109
/** @}