- changed allocation behavior

This commit is contained in:
Martin Willi
2005-11-29 08:08:03 +00:00
parent ed37dee61d
commit df3c59d088
47 changed files with 292 additions and 291 deletions
+9 -4
View File
@@ -34,10 +34,13 @@
typedef struct host_t host_t;
/**
* @brief Representates a Host
*
* Host object, identifies a host and defines some useful functions on it.
*
* @ingroup network
*/
struct host_t {
/**
@@ -105,15 +108,17 @@ struct host_t {
/**
* @brief Constructor to create a host_t object
*
* currently supports only IPv4!
* Currently supports only IPv4!
*
* @param family Address family to use for this object, such as AF_INET or AF_INET6
* @param address string of an address, such as "152.96.193.130"
* @param port port number
* @return the host_t object or NULL, when
* family not supported.
* @return
* - the host_t object, or
* - NULL, when family not supported.
*
* @ingroup network
*/
host_t *host_create(int family, char *address, u_int16_t port);
#endif /*HOST_H_*/