mirror of
https://github.com/microsoft/WSL.git
synced 2026-05-31 05:47:06 -05:00
add comments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user