You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently both are implemented, with the latter being implemented on top of the former.
We are basically compatible with the WinterCG Sockets API: https://sockets-api.proposal.wintercg.org/ and I guess it may make most sense not to deviate where unnecessary?
Doing this change might involve switching the way we do things to do it "push" style with callbacks from the native side to reduce overhead.
A starting point could be to drop the "old" API while still using it internally.
UDP would need to remain as is, since it's not a stream. The only annoyance there is that currently the read/write APIs are almost symetrical but then again, they are not really simmetrical...
Oh, "file streams" like when stdio is redirected, but also when opening regular files, should also be considered. We'd use the pull mode there, since it matches the underlying API.
The text was updated successfully, but these errors were encountered:
Currently both are implemented, with the latter being implemented on top of the former.
We are basically compatible with the WinterCG Sockets API: https://sockets-api.proposal.wintercg.org/ and I guess it may make most sense not to deviate where unnecessary?
Doing this change might involve switching the way we do things to do it "push" style with callbacks from the native side to reduce overhead.
A starting point could be to drop the "old" API while still using it internally.
UDP would need to remain as is, since it's not a stream. The only annoyance there is that currently the read/write APIs are almost symetrical but then again, they are not really simmetrical...
Oh, "file streams" like when stdio is redirected, but also when opening regular files, should also be considered. We'd use the pull mode there, since it matches the underlying API.
The text was updated successfully, but these errors were encountered: