Changes between Version 2 and Version 3 of Development/NetServices2
- Timestamp:
- Jan 2, 2023, 2:42:55 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Development/NetServices2
v2 v3 3 3 Haiku currently has a 'Network Services Kit' as part of it's standard library. The goal is to provide a standard interface to execute network requests to a variety of protocols, in a way that integrates cleanly with Haiku's API design. The current API has three problems: 4 4 5 1. While the API is designed to be asynchronous, every request spins up in a separate thread, which is an efficient way of using system resources.5 1. While the API is designed to be asynchronous, every request spins up in a separate thread, which is an inefficient way of using system resources. 6 6 2. The API design is quite prescriptive and does not work well for all protocols. There are known issues implementing the FTP protocol. 7 7 3. The API implemented a callback interface, which executed callbacks within the context of the dedicated request thread. This is problematic, as it does not impose any locking on the code that is executed, and thus invites data races.