ethereum / utp

uTorrent transport protocol
MIT License
28 stars 13 forks source link

Throw error if user trys to use both accept/accept_with_cid on the same socket #124

Open KolbyML opened 9 months ago

KolbyML commented 9 months ago

accept and accept_with_cid are very different paradigms for accepting connections. Because of this they capable of interchangeably using without logical errors.

Which even function a programmer uses first a flag should be set where if the other one is used an error should be thrown