In file included from udp_echo_server.cpp:11:0:
server/asio/udp_server.h:56:11: error: ‘CppCommon’ does not name a type
const CppCommon::UUID& id() const noexcept { return _id; }
^~~~~~~~~
server/asio/udp_server.h:140:35: error: ‘std::string_view’ has not been declared
virtual size_t Multicast(std::string_view text) { return Multicast(text.data(), text.size()); }
^~~~~~~~~~~
server/asio/udp_server.h:149:69: error: ‘CppCommon’ does not name a type
virtual size_t Multicast(const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~~~
server/asio/udp_server.h:149:88: error: expected unqualified-id before ‘&’ token
Multicast(const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^
server/asio/udp_server.h:149:88: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:149:88: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:149:90: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
Multicast(const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
timer_t
server/asio/udp_server.h:156:35: error: ‘std::string_view’ has not been declared
virtual size_t Multicast(std::string_view text, const CppCommon::Timespan& timeout) { return Multicast(text.data(), text.size(), timeout); }
^~~~~~~~~~~
server/asio/udp_server.h:156:59: error: ‘CppCommon’ does not name a type
virtual size_t Multicast(std::string_view text, const CppCommon::Timespan& timeout) { return Multicast(text.data(), text.size(), timeout); }
^~~~~~~~~
server/asio/udp_server.h:156:78: error: expected unqualified-id before ‘&’ token
al size_t Multicast(std::string_view text, const CppCommon::Timespan& timeout) { return Multicast(text.data(), text.size(), timeout); }
^
server/asio/udp_server.h:156:78: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:156:78: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:156:20: error: ‘virtual size_t CppServer::Asio::UDPServer::Multicast(...) &’ cannot be overloaded
virtual size_t Multicast(std::string_view text, const CppCommon::Timespan& timeout) { return Multicast(text.data(), text.size(), timeout); }
^~~~~~~~~
server/asio/udp_server.h:149:20: error: with ‘virtual size_t CppServer::Asio::UDPServer::Multicast(...) &’
virtual size_t Multicast(const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~~~
server/asio/udp_server.h:156:80: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
size_t Multicast(std::string_view text, const CppCommon::Timespan& timeout) { return Multicast(text.data(), text.size(), timeout); }
^~~~~~~
timer_t
In file included from udp_echo_server.cpp:11:0:
server/asio/udp_server.h:170:38: error: ‘std::string_view’ has not been declared
virtual bool MulticastAsync(std::string_view text) { return MulticastAsync(text.data(), text.size()); }
^~~~~~~~~~~
server/asio/udp_server.h:186:71: error: ‘std::string_view’ has not been declared
virtual size_t Send(const asio::ip::udp::endpoint& endpoint, std::string_view text) { return Send(endpoint, text.data(), text.size()); }
^~~~~~~~~~~
server/asio/udp_server.h:196:105: error: ‘CppCommon’ does not name a type
ip::udp::endpoint& endpoint, const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~~~
server/asio/udp_server.h:196:124: error: expected unqualified-id before ‘&’ token
endpoint, const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^
server/asio/udp_server.h:196:124: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:196:124: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:196:126: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
endpoint, const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
timer_t
server/asio/udp_server.h:204:71: error: ‘std::string_view’ has not been declared
virtual size_t Send(const asio::ip::udp::endpoint& endpoint, std::string_view text, const CppCommon::Timespan& timeout) { return Send(endpoint, text.data(), text.size(), timeout); }
^~~~~~~~~~~
server/asio/udp_server.h:204:95: error: ‘CppCommon’ does not name a type
nst asio::ip::udp::endpoint& endpoint, std::string_view text, const CppCommon::Timespan& timeout) { return Send(endpoint, text.data(), text.size(), timeout); }
^~~~~~~~~
server/asio/udp_server.h:204:114: error: expected unqualified-id before ‘&’ token
endpoint& endpoint, std::string_view text, const CppCommon::Timespan& timeout) { return Send(endpoint, text.data(), text.size(), timeout); }
^
server/asio/udp_server.h:204:114: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:204:114: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:204:20: error: ‘virtual size_t CppServer::Asio::UDPServer::Send(...) &’ cannot be overloaded
virtual size_t Send(const asio::ip::udp::endpoint& endpoint, std::string_view text, const CppCommon::Timespan& timeout) { return Send(endpoint, text.data(), text.size(), timeout); }
^~~~
server/asio/udp_server.h:196:20: error: with ‘virtual size_t CppServer::Asio::UDPServer::Send(...) &’
virtual size_t Send(const asio::ip::udp::endpoint& endpoint, const void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~
server/asio/udp_server.h:204:116: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
dpoint& endpoint, std::string_view text, const CppCommon::Timespan& timeout) { return Send(endpoint, text.data(), text.size(), timeout); }
^~~~~~~
timer_t
server/asio/udp_server.h:220:74: error: ‘std::string_view’ has not been declared
irtual bool SendAsync(const asio::ip::udp::endpoint& endpoint, std::string_view text) { return SendAsync(endpoint, text.data(), text.size()); }
^~~~~~~~~~~
server/asio/udp_server.h:246:96: error: ‘CppCommon’ does not name a type
asio::ip::udp::endpoint& endpoint, void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~~~
server/asio/udp_server.h:246:115: error: expected unqualified-id before ‘&’ token
oint& endpoint, void* buffer, size_t size, const CppCommon::Timespan& timeout);
^
server/asio/udp_server.h:246:115: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:246:115: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:246:117: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
oint& endpoint, void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
timer_t
server/asio/udp_server.h:254:87: error: ‘CppCommon’ does not name a type
tring Receive(asio::ip::udp::endpoint& endpoint, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~~~
server/asio/udp_server.h:254:106: error: expected unqualified-id before ‘&’ token
:ip::udp::endpoint& endpoint, size_t size, const CppCommon::Timespan& timeout);
^
server/asio/udp_server.h:254:106: error: expected ‘)’ before ‘&’ token
server/asio/udp_server.h:254:106: error: expected ‘;’ at end of member declaration
server/asio/udp_server.h:254:25: error: ‘virtual std::__cxx11::string CppServer::Asio::UDPServer::Receive(...) &’ cannot be overloaded
virtual std::string Receive(asio::ip::udp::endpoint& endpoint, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
server/asio/udp_server.h:246:20: error: with ‘virtual size_t CppServer::Asio::UDPServer::Receive(...) &’
virtual size_t Receive(asio::ip::udp::endpoint& endpoint, void* buffer, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
server/asio/udp_server.h:254:108: error: ‘timeout’ does not name a type; did you mean ‘timer_t’?
:ip::udp::endpoint& endpoint, size_t size, const CppCommon::Timespan& timeout);
^~~~~~~
timer_t
server/asio/udp_server.h:326:5: error: ‘CppCommon’ does not name a type
CppCommon::UUID _id;
^~~~~~~~~
In file included from udp_echo_server.cpp:11:0:
server/asio/udp_server.h: In member function ‘virtual size_t CppServer::Asio::UDPServer::Multicast(int)’:
server/asio/udp_server.h:140:77: error: request for member ‘data’ in ‘text’, which is of non-class type ‘int’
ual size_t Multicast(std::string_view text) { return Multicast(text.data(), text.size()); }
^~~~
server/asio/udp_server.h:140:90: error: request for member ‘size’ in ‘text’, which is of non-class type ‘int’
ulticast(std::string_view text) { return Multicast(text.data(), text.size()); }
^~~~
In file included from udp_echo_server.cpp:11:0:
server/asio/udp_server.h: In member function ‘virtual bool CppServer::Asio::UDPServer::MulticastAsync(int)’:
server/asio/udp_server.h:170:85: error: request for member ‘data’ in ‘text’, which is of non-class type ‘int’
MulticastAsync(std::string_view text) { return MulticastAsync(text.data(), text.size()); }
^~~~
server/asio/udp_server.h:170:98: error: request for member ‘size’ in ‘text’, which is of non-class type ‘int’
ync(std::string_view text) { return MulticastAsync(text.data(), text.size()); }
^~~~
server/asio/udp_server.h: In member function ‘virtual size_t CppServer::Asio::UDPServer::Send(const endpoint&, int)’:
server/asio/udp_server.h:186:118: error: request for member ‘data’ in ‘text’, which is of non-class type ‘int’
oint& endpoint, std::string_view text) { return Send(endpoint, text.data(), text.size()); }
^~~~
server/asio/udp_server.h:186:131: error: request for member ‘size’ in ‘text’, which is of non-class type ‘int’
nt, std::string_view text) { return Send(endpoint, text.data(), text.size()); }
^~~~
server/asio/udp_server.h: In member function ‘virtual bool CppServer::Asio::UDPServer::SendAsync(const endpoint&, int)’:
server/asio/udp_server.h:220:126: error: request for member ‘data’ in ‘text’, which is of non-class type ‘int’
endpoint, std::string_view text) { return SendAsync(endpoint, text.data(), text.size()); }
^~~~
server/asio/udp_server.h:220:139: error: request for member ‘size’ in ‘text’, which is of non-class type ‘int’
td::string_view text) { return SendAsync(endpoint, text.data(), text.size()); }
^~~~
udp_echo_server.cpp: In member function ‘virtual void EchoServer::onReceived(const endpoint&, const void*, size_t)’:
udp_echo_server.cpp:33:36: error: no matching function for call to ‘EchoServer::SendAsync(const endpoint&, std::__cxx11::string&)’
SendAsync(endpoint, message);
^
In file included from udp_echo_server.cpp:11:0:
server/asio/udp_server.h:213:18: note: candidate: virtual bool CppServer::Asio::UDPServer::SendAsync(const endpoint&, const void*, size_t)
virtual bool SendAsync(const asio::ip::udp::endpoint& endpoint, const void* buffer, size_t size);
^~~~~~~~~
server/asio/udp_server.h:213:18: note: candidate expects 3 arguments, 2 provided
server/asio/udp_server.h:220:18: note: candidate: virtual bool CppServer::Asio::UDPServer::SendAsync(const endpoint&, int)
virtual bool SendAsync(const asio::ip::udp::endpoint& endpoint, std::string_view text) { return SendAsync(endpoint, text.data(), text.size()); }
^~~~~~~~~
server/asio/udp_server.h:220:18: note: no known conversion for argument 2 from ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘int’