created identification_create_from_sockaddr() function

This commit is contained in:
Andreas Steffen
2009-10-09 00:13:28 +02:00
parent a4eb37eed0
commit 4b4f8bd732
2 changed files with 41 additions and 0 deletions
+8
View File
@@ -322,6 +322,14 @@ identification_t * identification_create_from_string(char *string);
*/
identification_t * identification_create_from_encoding(id_type_t type, chunk_t encoded);
/**
* Constructor to create a host_t object from a sockaddr struct
*
* @param sockaddr sockaddr struct which contains family and address
* @return identification_t
*/
identification_t * identification_create_from_sockaddr(sockaddr_t *sockaddr);
/**
* printf hook function for identification_t.
*