Matrix-Zhang / tokio_kcp

A Kcp implementation for tokio
MIT License
176 stars 44 forks source link

Changed and added some public function #27

Closed KunoSayo closed 1 year ago

KunoSayo commented 1 year ago

There are 2 changes in this pull reuqest.

  1. For const-context use of the associated function in KcpNoDelayConfig, the associated function is now const.
  2. For accessing some Kcp API functions, expose session in KcpStream.

In fact, the cause of the second change is that I just need the KcpSocket to access Kcp to get the window situation. I don't know if it is correct to access session in the KcpStream. Thanks for your time reviewing my pull request