mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-11-29 01:01:54 +00:00
Fix NX, add constant time compare, add TF_Span
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user