Changes between Version 2 and Version 3 of Development/NetServices2


Ignore:
Timestamp:
Jan 2, 2023, 2:42:55 PM (16 months ago)
Author:
nielx
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/NetServices2

    v2 v3  
    33Haiku 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:
    44
    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.
     51. 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.
    662. The API design is quite prescriptive and does not work well for all protocols. There are known issues implementing the FTP protocol.
    773. 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.