-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: Add useful function for later use
Signed-off-by: David Goulet <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Copyright (C) 2000-2008 - Shaun Clowes <[email protected]> | ||
* 2008-2011 - Robert Hogan <[email protected]> | ||
* 2013 - David Goulet <[email protected]> | ||
* Copyright (C) 2000-2008 - Shaun Clowes <[email protected]> | ||
* 2008-2011 - Robert Hogan <[email protected]> | ||
* 2013 - David Goulet <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License, version 2 only, as | ||
|
@@ -34,5 +34,6 @@ int utils_sockaddr_is_localhost(const struct sockaddr *sa); | |
int utils_localhost_resolve(const char *name, int af, void *buf, size_t len); | ||
int utils_is_addr_any(const struct sockaddr *sa); | ||
int utils_get_port_from_addr(const struct sockaddr *sa); | ||
const char *utils_get_addr_from_sockaddr(const struct sockaddr *sa); | ||
|
||
#endif /* TORSOCKS_UTILS_H */ |