libfilezilla
|
Lightweight holder for socket descriptors. More...
#include <socket.hpp>
Public Member Functions | |
socket_descriptor (socket_base::socket_t fd) noexcept | |
socket_descriptor (socket_descriptor const &)=delete | |
socket_descriptor & | operator= (socket_descriptor const &)=delete |
socket_descriptor (socket_descriptor &&rhs) noexcept | |
socket_descriptor & | operator= (socket_descriptor &&rhs) noexcept |
socket_base::socket_t | detach () |
operator bool () const | |
std::string | peer_ip (bool strip_zone_index=false) const |
Returns remote address of a connected socket. More... | |
int | peer_port (int &error) const |
Returns remote port of a connected socket. More... | |
Lightweight holder for socket descriptors.
std::string peer_ip | ( | bool | strip_zone_index = false | ) | const |
Returns remote address of a connected socket.
int peer_port | ( | int & | error | ) | const |
Returns remote port of a connected socket.