OLS: A proposal for a new networking API
OLS: A proposal for a new networking API
Posted Jul 24, 2006 15:14 UTC (Mon) by mheily (subscriber, #27123)In reply to: OLS: A proposal for a new networking API by neilbrown
Parent article: OLS: A proposal for a new networking API
Or better yet, extend the path heirarchy to include the IP address and port, then allow setsockopt to operate on file descriptors:
fd = open("/net/localhost/ip/192.168.0.1/1023", O_RDWR, 0);
setsockopt(fd, O_TCPSYNCNT, 5);
You could bind to all interfaces by binding to 0.0.0.0 like so:
fd = open("/net/localhost/ip/0.0.0.0/1023", O_RDWR, 0);
