diff options
author | Stef Walter <stef@memberwebs.com> | 2004-06-09 17:19:45 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-06-09 17:19:45 +0000 |
commit | 5995e2afd8f026de8f5eb9a392b59542a98bf7e5 (patch) | |
tree | 1bd4e661665c49fa62ea7813b793a18718d4d47b /common/sock_any.h | |
parent | 88bdaea8c3ef28680a83ee6c82e77e97c6116fb4 (diff) |
- Added peer name logging
- Reformatted connection logging
Diffstat (limited to 'common/sock_any.h')
-rw-r--r-- | common/sock_any.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/sock_any.h b/common/sock_any.h index 5d733b1..693bd2a 100644 --- a/common/sock_any.h +++ b/common/sock_any.h @@ -23,10 +23,11 @@ struct sockaddr_any size_t namelen; }; -#define SANY_ADDR(any) (&((any).s.a)) +#define SANY_ADDR(any) ((any).s.a) #define SANY_LEN(any) ((any).namelen) #define SANY_TYPE(any) ((any).s.a.sa_family) int sock_any_pton(const char* addr, struct sockaddr_any* any, int defport); +int sock_any_ntop(struct sockaddr_any* any, char* addr, size_t addrlen); #endif /* __SOCK_ANY_H__ */ |