OLS: A proposal for a new networking API
Posted Jul 24, 2006 5:47 UTC (Mon) by BrucePerens
In reply to: OLS: A proposal for a new networking API
Parent article: OLS: A proposal for a new networking API
I'm curious what a new, socket-replacing API would look like.
open("/net/localhost/http", O_RDWR, 0)
Maybe this is not quite what you were asking for :-) . Of course, it's inspired by Plan 9. Using this, or using the socket calls, you get back the same object: a file descriptor. I think socket calls come from BBN's ARPA-sponsored Unix TCP/IP implementation, filtered through Berkeley BSD. They are indeed non-Unix-like, as are the net devices which live in their own unique name space.
Once you get the FD, you can call magic DMA functions on it as Ulrich proposes, which should be valid for plain files, not just network devices. Sometimes, however, what you need to do will fit the simpler sendfile().
to post comments)