载入中...
搜索中...
未找到
TcpSocket.h
浏览该文件的文档.
In-memory byte buffer implementing eve::Data (ref-counted).
Definition ByteData.h:11
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:30
TCP socket backed by Poco::Net; supports both client (connect) and server (listen/accept) roles....
Definition TcpSocket.h:28
Network * network() const
Internal: owning module (used by Network::pump / NetWorker).
Definition TcpSocket.h:54
void pushAccepted(std::unique_ptr< TcpSocket > sock)
Definition TcpSocket.cpp:43
bool listen(uint16_t port)
Starts listening on the given port; true on success.
Definition TcpSocket.cpp:106
bool takeAccepted(std::unique_ptr< TcpSocket > &out)
Definition TcpSocket.cpp:48
bool queueSend(const void *d, size_t n)
Append bytes to the pending send queue (worker-thread flush via pollSockets).
Definition TcpSocket.cpp:146
void setConnectedSocket(std::unique_ptr< Poco::Net::StreamSocket > sock)
Definition TcpSocket.cpp:23
void flushSend()
Push pending bytes onto the socket; called from Network::pollSockets.
Definition TcpSocket.cpp:177
std::string getPeer() const
Remote peer address string, e.g. "1.2.3.4:5678".
Definition TcpSocket.cpp:248
size_t pendingSendBytes() const
Internal: queued-outgoing byte counter for back-pressure.
Definition TcpSocket.cpp:167
bool connect(std::string host, uint16_t port)
Connects to host:port; true on success.
Definition TcpSocket.cpp:56
bool send(eve::data::ByteData *data)
Sends a framed byte payload; true when queued/accepted.
Definition TcpSocket.cpp:134
Definition DebugAdapter.hpp:16
Definition ByteData.cpp:7
Definition Channel.cpp:12