VPN Plugin framework and detection of closed peer connection

Alexander Sbitnev 1 Reputation point

Hi there!
I spent some time playing with UWPToyVpn sample and been able to run it with packets flowing through StreamSocket.
But I am not able to find a way to detect event of connection reset initiated by peer. Since VpnChannel is associated and running this socket there should be a way to get such event. Is there a way to do that?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Peter Smith 566 Reputation points Microsoft Employee

    The OS will detect that the outer socket has been closed and will automatically restart (you'll get a new connect call).