simple-socket library 1.9.0
Loading...
Searching...
No Matches
SocketUtils.h
Go to the documentation of this file.
1#ifndef NET_SocketUtils_h__
2#define NET_SocketUtils_h__
3
4#include <cstdint>
5#include <string>
6
7namespace NET
8{
16 std::string resolveHostname( const std::string& hostname);
17
27 uint16_t resolveService( const std::string& service, const std::string& protocol = "tcp");
28}
29#endif // NET_SocketUtils_h__
uint16_t resolveService(const std::string &service, const std::string &protocol="tcp")
std::string resolveHostname(const std::string &hostname)