VPN Plugin framework and detection of closed peer connection

asked 2020-04-29T14:43:39.94+00:00
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)
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2020-04-29T23:55:02.04+00:00
    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).