Deskflow 1.22.0.197
Keyboard and mouse sharing utility
|
Socket bad address exception. More...
#include <XSocket.h>
Public Types | |
enum class | SocketError { Unknown , NotFound , NoAddress , Unsupported , BadPort } |
Failure codes. More... |
Public Member Functions | |
XSocketAddress (SocketError, const std::string &hostname, int port) noexcept | |
~XSocketAddress () override throw () =default | |
Public Member Functions inherited from XBase | |
XBase () | |
Use getWhat() as the result of what() | |
XBase (const std::string &msg) | |
Use msg as the result of what() | |
~XBase () override throw () =default | |
const char * | what () const override throw () |
Reason for exception. |
accessors | |
SocketError | getError () const noexcept |
Get the error code. | |
std::string | getHostname () const noexcept |
Get the hostname. | |
int | getPort () const noexcept |
Get the port. | |
std::string | getWhat () const override throw () |
Get a human readable string describing the exception. |
Additional Inherited Members | |
Protected Member Functions inherited from XBase | |
virtual std::string | format (const char *id, const char *defaultFormat,...) const noexcept |
Format a string. |
Socket bad address exception.
Thrown when attempting to create an invalid network address.
|
strong |
|
noexcept |
|
overridedefault |
|
noexcept |
Get the error code.
|
noexcept |
Get the hostname.
|
noexcept |
Get the port.
|
overrideprotectedvirtual |
Get a human readable string describing the exception.
Reimplemented from XBase.