Handle Write event.
115 {
117 {
118 int saveErrno = 0;
120 if (n > 0)
121 {
124 {
127 {
129 }
131 {
133 }
134 }
135 }
136 else
137 {
138 SPICES_CORE_ERROR("TcpConnection::HandleWrite Error")
139 }
140 }
141 else
142 {
143 SPICES_CORE_ERROR("TcpConnection::HandleWrite Error")
144 }
145 }
size_t WriteFd(SOCKET fd, int *saveErrno) const
Write to Socket.
size_t ReadableBytes() const
Get readable area bytes.
void Retrieve(size_t len)
Retrieve some buffer data from data area.
void QueueInLoop(Functor cb)
Execute functor in EventLoop thread.
std::atomic< State > m_State
TcpConnection state.
Buffer m_OutputBuffer
Output Buffer.
DelegateWriteCompleteCallback m_WriteCompleteCallback
DelegateWriteCompleteCallback.
std::unique_ptr< Channel > m_Channel
TcpConnection channel.
EventLoop * m_IoLoop
io Loop from TcpServer::NewConnection.
void ShutDownInLoop() const
ShutDown socket.