VPN Plugin framework and detection of closed peer connection

Alexander Sbitnev 1 Reputation point
2020-04-29T14:43:39.94+00:00

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 581 Reputation points Microsoft Employee
    2020-04-29T23:55:02.04+00:00

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