prints out default gateway in example

This commit is contained in:
Arvid Norberg 2008-01-11 09:58:40 +00:00
parent f36e6a6c4f
commit dad00f68cd
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ int main()
}
address local = guess_local_address(ios);
std::cout << "Local address: " << local << std::endl;
address gateway = get_default_gateway(ios, local, ec);
std::cout << "Default gateway: " << gateway << std::endl;
}