mavtables
0.2.1
MAVLink router and firewall.
|
#include <algorithm>
#include <memory>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include <cstring>
#include <netdb.h>
#include <netinet/in.h>
#include <boost/algorithm/string.hpp>
#include "config.hpp"
#include "DNSLookupError.hpp"
#include "IPAddress.hpp"
#include "utility.hpp"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const IPAddress &ipaddress) |
std::ostream& operator<< | ( | std::ostream & | os, |
const IPAddress & | ipaddress | ||
) |
Print the IP address to the given output stream.
The format is "<IP Address>" or "<IP Address>:<Port Number>" if the port number is nonzero an "<IP Address>" if the port is 0.
Some examples are:
127.0.0.1
127.0.0.1:14555
183.125.120.42:443
os | The output stream to print to. |
ipaddress | The IP address to print. |
Definition at line 340 of file IPAddress.cpp.
References to_bytes().