14 # include <winsock2.h> 16 # include <netinet/in.h> 23 #include <coral/config.h> 100 Address(in_addr address) CORAL_NOEXCEPT;
103 bool IsAnyAddress()
const CORAL_NOEXCEPT;
106 bool IsName()
const CORAL_NOEXCEPT;
121 in_addr ToInAddr()
const;
174 Port(
const char* port);
177 bool IsNumber()
const CORAL_NOEXCEPT;
180 bool IsAnyPort()
const CORAL_NOEXCEPT;
233 explicit Endpoint(
const sockaddr_in& sin);
241 explicit Endpoint(
const sockaddr& sa);
247 void SetAddress(
const ip::Address& value) CORAL_NOEXCEPT;
258 void SetPort_(
const ip::Port& value) CORAL_NOEXCEPT;
281 sockaddr_in ToSockaddrIn()
const;
299 const Endpoint& ControlEndpoint()
const CORAL_NOEXCEPT;
300 const Endpoint& DataPubEndpoint()
const CORAL_NOEXCEPT;
309 #endif // header guard An object which represents an internet port number.
Definition: net.hpp:156
An object which identifies an internet host or network interface as either an IPv4 address or a textu...
Definition: net.hpp:80
std::string URL() const CORAL_NOEXCEPT
Returns a URL on the form "transport://address".
bool operator!=(const Address &a1, const Address &a2)
Inequality operator for coral::net::ip::Address.
Definition: net.hpp:143
An object which identifies an endpoint for Internet communication as a combination of an address and ...
Definition: net.hpp:209
A protocol/transport independent endpoint address specification.
Definition: net.hpp:34
Definition: variable_io.hpp:28
std::string Address() const CORAL_NOEXCEPT
Returns the address.
Endpoint() CORAL_NOEXCEPT
Default constructor; leaves both transport and adress empty.
std::string Transport() const CORAL_NOEXCEPT
Returns the transport.
bool operator==(const Address &a1, const Address &a2)
Equality operator for coral::net::ip::Address.
Class which represents the network location(s) of a slave.
Definition: net.hpp:292