OpenVPN 3 Core Library
|
Windows Internet Name Service (WINS) server configuration. More...
#include <capture.hpp>
Public Member Functions | |
std::string | to_string () const |
Converts the WINS server to a string representation. | |
void | validate (const std::string &title) const |
Validates the WINS server address. | |
Json::Value | to_json () const |
Serializes the WINS server to a JSON object. | |
void | from_json (const Json::Value &root, const std::string &title) |
Deserializes a WINS server from a JSON object. | |
Public Attributes | |
std::string | address |
Windows Internet Name Service (WINS) server configuration.
Represents a WINS server with its IPv4 address. WINS provides name resolution services in Microsoft Windows networks, allowing NetBIOS names to be mapped to IP addresses.
Definition at line 564 of file capture.hpp.
|
inline |
Deserializes a WINS server from a JSON object.
Extracts the "address" field from the JSON object and assigns it to the server address.
root | The JSON object to deserialize from. |
title | The context name used in error messages. |
Definition at line 611 of file capture.hpp.
|
inline |
Serializes the WINS server to a JSON object.
Creates a JSON object with the "address" field containing the server's IP address.
Definition at line 597 of file capture.hpp.
|
inline |
Converts the WINS server to a string representation.
Definition at line 573 of file capture.hpp.
|
inline |
Validates the WINS server address.
Checks if the address is a valid IPv4 address. Throws an exception if the address is invalid.
title | The context name used in error messages. |
Definition at line 585 of file capture.hpp.
std::string openvpn::TunBuilderCapture::WINSServer::address |
Definition at line 567 of file capture.hpp.