diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-02 22:18:07 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-02 22:18:07 -0300 |
commit | 7aa4b350e62d3c145015ca8a5d34ee9a45bc42f3 (patch) | |
tree | 3e5525f5f54e975d6d3738ac294578f61c0e62a0 /network.h | |
parent | afe414d90ef6ce9a1c8437629b8299c126fd7044 (diff) |
network: Add `addr_to_str()`
This function takes a `sockaddr`, along with the length of the
`sockaddr`, and creates a string from that address.
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -31,4 +31,6 @@ struct packet { cmd cmd; /* Command. */ }; +extern const char *addr_to_str(struct sockaddr *sa, socklen_t len); + #endif |