Fix NX, add constant time compare, add TF_Span
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 1m44s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, msi-walmart) (push) Successful in 2m11s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 2m33s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 2m34s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, asrock) (push) Successful in 2m38s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 2m57s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Successful in 3m13s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 1m44s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, msi-walmart) (push) Successful in 2m11s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 2m33s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 2m34s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, asrock) (push) Successful in 2m38s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 2m57s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Successful in 3m13s
This commit is contained in:
@@ -80,6 +80,15 @@ class NetworkStream : public Stream {
|
||||
size_t ReadFrom(uint8_t *buff, size_t sz, std::string &ip, uint16_t &port);
|
||||
size_t WriteTo(const uint8_t *buff, size_t sz, std::string ip,
|
||||
uint16_t port);
|
||||
size_t ReadFrom(TF_Span<uint8_t> buff, std::string &ip, uint16_t &port)
|
||||
{
|
||||
return ReadFrom(buff.data(),buff.size(),ip, port);
|
||||
}
|
||||
size_t WriteTo(const TF_Span<uint8_t> buff, std::string ip,
|
||||
uint16_t port)
|
||||
{
|
||||
return WriteTo(buff.data(),buff.size(),ip, port);
|
||||
}
|
||||
static std::vector<std::pair<std::string, std::string>>
|
||||
GetIPs(bool ipV6 = false);
|
||||
|
||||
|
||||
@@ -35,6 +35,23 @@ class Stream {
|
||||
virtual size_t Write(const uint8_t *buff, size_t sz);
|
||||
size_t ReadBlock(uint8_t *buff, size_t sz);
|
||||
void WriteBlock(const uint8_t *buff, size_t sz);
|
||||
size_t Read(TF_Span<uint8_t> buff) {
|
||||
return Read(buff.data(), buff.size());
|
||||
}
|
||||
size_t Write(const TF_Span<uint8_t> buff)
|
||||
{
|
||||
return Write(buff.data(), buff.size());
|
||||
}
|
||||
size_t ReadBlock(TF_Span<uint8_t> buff)
|
||||
{
|
||||
return ReadBlock(buff.data(), buff.size());
|
||||
}
|
||||
void WriteBlock(const TF_Span<uint8_t> buff)
|
||||
{
|
||||
WriteBlock(buff.data(),buff.size());
|
||||
}
|
||||
|
||||
|
||||
virtual bool CanRead();
|
||||
virtual bool CanWrite();
|
||||
virtual bool CanSeek();
|
||||
|
||||
Reference in New Issue
Block a user