2323
2424using namespace scl ;
2525
26- void TcpChannel::close () {
26+ void details:: TcpChannel::close () {
2727 if (m_alive) {
2828 // ensures that we only attempt to close the socket once, even if closing
2929 // the somehow socket fails.
@@ -37,11 +37,11 @@ void TcpChannel::close() {
3737 }
3838}
3939
40- Task<void > TcpChannel::send (Packet&& packet) {
40+ Task<void > details:: TcpChannel::send (Packet&& packet) {
4141 co_await send (packet);
4242}
4343
44- Task<void > TcpChannel::send (const Packet& packet) {
44+ Task<void > details:: TcpChannel::send (const Packet& packet) {
4545 // Write the packet size to a buffer.
4646 const Packet::SizeType pkt_sz = packet.dataSize ();
4747 const auto pkt_t_sz = sizeof (Packet::SizeType);
@@ -126,7 +126,7 @@ Task<bool> recvInto(int socket,
126126
127127} // namespace
128128
129- Task<Packet> TcpChannel::recv () {
129+ Task<Packet> details:: TcpChannel::recv () {
130130 unsigned char packet_size_buf[sizeof (Packet::SizeType)] = {0 };
131131
132132 // read size of the packet.
@@ -141,7 +141,7 @@ Task<Packet> TcpChannel::recv() {
141141 co_return packet;
142142}
143143
144- Task<std::optional<Packet>> TcpChannel::recv (Time::Duration timeout) {
144+ Task<std::optional<Packet>> details:: TcpChannel::recv (Time::Duration timeout) {
145145 unsigned char packet_size_buf[sizeof (Packet::SizeType)] = {0 };
146146
147147 // attempt to read the size of the packet. If we timeout here, we will simply
@@ -167,6 +167,6 @@ Task<std::optional<Packet>> TcpChannel::recv(Time::Duration timeout) {
167167 co_return packet;
168168}
169169
170- Task<bool > TcpChannel::poll () {
170+ Task<bool > details:: TcpChannel::poll () {
171171 co_return details::pollSocket (m_socket, POLLIN);
172172}
0 commit comments