add comments

This commit is contained in:
Xin Wang (from Dev Box)
2026-05-13 04:12:44 +08:00
parent a7a0271b11
commit 331dbfbd4b

View File

@@ -401,6 +401,7 @@ struct PortRelay
wsl::windows::common::relay::SocketRelay(WindowsSocket, channel.Socket(), message.BufferSize);
}
// Completes the overlapped AcceptEx initiated by ScheduleAccept, and sets accept context on the accepted socket.
void CompleteAccept()
{
Pending = false;
@@ -419,6 +420,7 @@ struct PortRelay
SOCKET_ERROR);
}
// If the accept completes immediately, accept context will be set on the accepted socket.
bool ScheduleAccept()
{
WI_VERIFY(!Pending);