Sese Framework
2.3.0
A cross-platform framework
|
Namespaces | |
namespace | dns |
namespace | http |
namespace | ws |
Classes | |
class | Address |
Address class. More... | |
class | AddressPool |
IP address pool. More... | |
class | IPAddress |
IP address class. More... | |
class | IPv4Address |
IPv4 address class. More... | |
class | IPv6Address |
IPv6 address class. More... | |
class | ReusableSocket |
Reusable socket builder for address and port. More... | |
class | Socket |
Native Socket class. More... | |
Typedefs | |
using | IPv4AddressPool = AddressPool<sese::net::IPv4Address> |
using | IPv6AddressPool = AddressPool<sese::net::IPv6Address> |
Functions | |
template<typename T > | |
static T | CreateMask (uint32_t bits) |
int | inetPton (int af, const char *src, void *dst) noexcept |
uint16_t | createRandomPort () noexcept |
int | getNetworkError () noexcept |
Get network-related error codes. | |
std::string | getNetworkErrorString (int error=getNetworkError()) noexcept |
Get network-related error description. | |
|
static |
|
noexcept |
Randomly select a port in the range (1024, 65535)
References sese::RandomUtil::next().
|
externnoexcept |
Get network-related error codes.
Referenced by sese::net::Socket::connect(), sese::security::SecuritySocket::connect(), sese::_windows::iocp::v1::NativeIOCPServer::eventThreadProc(), sese::service::TcpTransporter::onRead(), sese::iocp::v1::IOCPService::onWrite(), sese::service::TcpTransporter::onWrite(), sese::_windows::iocp::v1::NativeIOCPServer::postConnect(), sese::iocp::v1::IOCPServer::postConnect(), sese::_windows::iocp::v1::NativeIOCPServer::postRead(), and sese::_windows::iocp::v1::NativeIOCPServer::postWrite().
|
noexcept |
Get network-related error description.
error | Code |
References sese::getErrorString().
|
noexcept |
Referenced by sese::net::IPv4Address::create(), and sese::net::IPv6Address::create().