Function sock

Summary

#include <src/uvw/tcp.h>

(1) template <typename I = IPv4>
    Addr sock() const noexcept

#include <src/uvw/tcp.cpp>

(2) template <typename I>
    UVW_INLINE Addr sock() const noexcept

Function overload

Synopsis

#include <src/uvw/tcp.h>

template <typename I = IPv4>
Addr sock() const noexcept

Description

Gets the current address to which the handle is bound.

Returns
A valid instance of Addr, an empty one in case of errors.

Source

Line 165 in src/uvw/tcp.h.

Synopsis

#include <src/uvw/tcp.cpp>

template <typename I>
UVW_INLINE Addr sock() const noexcept

Description

No description yet.

Source

Lines 61-64 in src/uvw/tcp.cpp.

template<typename I>
UVW_INLINE Addr TCPHandle::sock() const noexcept {
    return details::address<I>(&uv_tcp_getsockname, get());
}





Add Discussion as Guest

Log in