RevenantX / LiteNetLib

Lite reliable UDP library for Mono and .NET
https://revenantx.github.io/LiteNetLib/index.html
MIT License
3.05k stars 494 forks source link

[Question]keep connection when client ip change? #273

Closed lordoffox closed 5 years ago

lordoffox commented 5 years ago

If client change it's ip address, when 4G switch to WIFI, does LiteLib keep connection instead of disconnect the connection?

RevenantX commented 5 years ago

@lordoffox if IP address changed then you will get disconnect.

lordoffox commented 5 years ago

how long to receive disconnect notify?

lordoffox commented 5 years ago

quic can keep connection, it improve the mobile rudp quality mobile change ip in many case: 4g -> wifi, wifi -> 4g, 4g1 -> 4g2 is any chance LiteNetLib can keep connection?

RevenantX commented 5 years ago

@lordoffox you can make this on application level if you can 100% identify connected peer.

lordoffox commented 5 years ago

yes i can know the identify by peer but i can't control the resend data manager by LiteNetLib so application need to know which data is send succeed to remote, by at this time, disconnect event received, if reconnect succeed , maybe some duplicate data while send to new peer.

RevenantX commented 5 years ago

@lordoffox this will be fixed with #67