mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-03 03:11:43 +02:00
Add client mode to TcpStream
This commit is contained in:
parent
43c58febd7
commit
fd616956cb
3 changed files with 75 additions and 21 deletions
|
@ -66,6 +66,18 @@ static int stoi(const std::string& str)
|
|||
#endif
|
||||
}
|
||||
|
||||
static int stoi(const std::string& str, int def)
|
||||
{
|
||||
try
|
||||
{
|
||||
return cpt::stoi(str);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
static double stod(const std::string& str)
|
||||
{
|
||||
#ifdef NO_CPP11_STRING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue