Function peer

Summary

#include <src/uvw/tcp.h>

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

#include <src/uvw/tcp.cpp>

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

Function overload

Synopsis

#include <src/uvw/tcp.h>

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

Description

Gets the address of the peer connected to the handle.

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

Source

Line 172 in src/uvw/tcp.h.

Synopsis

#include <src/uvw/tcp.cpp>

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

Description

No description yet.

Source

Lines 67-70 in src/uvw/tcp.cpp.

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





Add Discussion as Guest

Log in