OLS: A proposal for a new networking API
OLS: A proposal for a new networking API
Posted Jul 24, 2006 6:59 UTC (Mon) by neilbrown (subscriber, #359)In reply to: OLS: A proposal for a new networking API by BrucePerens
Parent article: OLS: A proposal for a new networking API
The (a) problem with
open("/net/localhost/http", O_RDWR, 0)
type approaches is that they combine "socket" and "connect" into one
call, and so there is no room for doing anything in between like bind
or setsockopt. Those things aren't always needed, but sometimes they are.
You could try
open("/net/local/http:bind=1023;sourceaddr=xx.xx.xx.xx;tcp_syncnt=5")
but I don't think you would get very far.
Unfortunately IPC is simply very different from for file IO and trying
to use the same API will be a problem. Having an open_url library call
is about the best you can do.
