diff options
author | James M Snell <jasnell@gmail.com> | 2020-08-12 22:34:42 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-08-21 19:18:44 +0300 |
commit | c6e1edcc2802224cb9b312e9051e6bcdfc7935e4 (patch) | |
tree | 3bd3ab7c96ce1ac0142eb756f1c798febbcebd3f /src/node_sockaddr.h | |
parent | 757bac671117f8fbb68f808d4bbbe83035e4940d (diff) |
src: add Update(const sockaddr*) variant
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/34752
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_sockaddr.h')
-rw-r--r-- | src/node_sockaddr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_sockaddr.h b/src/node_sockaddr.h index 69a370afa32..f05b58d3551 100644 --- a/src/node_sockaddr.h +++ b/src/node_sockaddr.h @@ -123,6 +123,7 @@ class SocketAddress : public MemoryRetainer { inline void set_flow_label(uint32_t label = 0); inline void Update(uint8_t* data, size_t len); + inline void Update(const sockaddr* data, size_t len); static SocketAddress FromSockName(const uv_udp_t& handle); static SocketAddress FromSockName(const uv_tcp_t& handle); |