24#ifndef WPINET_TCPSTREAM_H_
25#define WPINET_TCPSTREAM_H_
49 size_t send(
const char* buffer,
size_t len,
Error* err)
override;
51 int timeout = 0)
override;
64 bool WaitForReadEvent(
int timeout);
Definition NetworkStream.h:13
Error
Definition NetworkStream.h:18
Definition TCPAcceptor.h:39
Definition TCPConnector.h:37
Definition TCPStream.h:37
bool setBlocking(bool enabled) override
size_t send(const char *buffer, size_t len, Error *err) override
int getNativeHandle() const override
void setNoDelay() override
int getPeerPort() const override
size_t receive(char *buffer, size_t len, Error *err, int timeout=0) override
std::string_view getPeerIP() const override
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Foonathan namespace.
Definition ntcore_cpp.h:26