Finished implementing, now for the testing phase.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace ehs
|
||||
}
|
||||
|
||||
Spotify::Spotify(Str_8 clientId, Str_8 secret, Str_8 redURI, Array<Str_8> scopes, const bool forceVerify)
|
||||
: client(AddrType::IPV4), clientId((Str_8 &&)clientId), secret((Str_8 &&)secret), redURI((Str_8 &&)redURI),
|
||||
: client(IP::V4), clientId((Str_8 &&)clientId), secret((Str_8 &&)secret), redURI((Str_8 &&)redURI),
|
||||
scopes((Array<Str_8> &&)scopes), forceVerify(forceVerify)
|
||||
{
|
||||
}
|
||||
@@ -41,7 +41,7 @@ namespace ehs
|
||||
"&response_type=code&show_dialog=" + (forceVerify ? "true" : "false") + "&scope=" +
|
||||
scopesFinal;
|
||||
|
||||
TCP server(AddrType::IPV4);
|
||||
TCP server(IP::V4);
|
||||
server.Initialize();
|
||||
server.Bind("", 65534);
|
||||
server.Listen();
|
||||
@@ -73,7 +73,7 @@ namespace ehs
|
||||
|
||||
server.Release();
|
||||
|
||||
SSL accounts(AddrType::IPV4);
|
||||
SSL accounts(IP::V4);
|
||||
accounts.Initialize();
|
||||
accounts.Connect("accounts.spotify.com", SSL::HTTPS_Port);
|
||||
|
||||
@@ -588,7 +588,7 @@ namespace ehs
|
||||
|
||||
bool Spotify::ReAuthorize()
|
||||
{
|
||||
SSL accounts(AddrType::IPV4);
|
||||
SSL accounts(IP::V4);
|
||||
accounts.Initialize();
|
||||
accounts.Connect("accounts.spotify.com", SSL::HTTPS_Port);
|
||||
|
||||
|
@@ -16,7 +16,7 @@ namespace ehs
|
||||
}
|
||||
|
||||
Twitch::Twitch(const Str_8& clientId, const Str_8& secret, const Str_8& redURI, const Array<Str_8>& scopes, const bool forceVerify)
|
||||
: client(AddrType::IPV4), clientId(clientId), secret(secret), redURI(redURI), scopes(scopes), forceVerify(forceVerify)
|
||||
: client(IP::V4), clientId(clientId), secret(secret), redURI(redURI), scopes(scopes), forceVerify(forceVerify)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace ehs
|
||||
"&response_type=code&force_verify=" + (forceVerify ? "true" : "false") + "&scope=" +
|
||||
scopesFinal;
|
||||
|
||||
TCP server(AddrType::IPV4);
|
||||
TCP server(IP::V4);
|
||||
server.Bind("", 65535);
|
||||
server.Listen();
|
||||
|
||||
|
@@ -53,7 +53,7 @@ namespace ehs
|
||||
if (initialized)
|
||||
return;
|
||||
|
||||
client = TCP(ehs::AddrType::IPV4);
|
||||
client = TCP(ehs::IP::V4);
|
||||
client.Connect(DNS::Resolve("irc.chat.twitch.tv"), 6667);
|
||||
client.SetBlocking(false);
|
||||
|
||||
|
Reference in New Issue
Block a user