Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can't send a tcp socket over a tcp socket :) (just one among many reasons why raw sockets are necessary but not sufficient).


How does this work? If A has a channel to B, and sends that channel to C, do B and C now communicate directly, or is it proxied through A?

EDIT: I see you mentioned the Unix socket transport passes around file descriptors. How about the inter-host transports? Obviously two browsers can't directly connect to each other (or could they with WebRTC...?) what about, say, TCP between hosts on the same local network?


And I suppose you can with a channel? Or are you just sending a proxy to the socket (which you could also do with a traditional socket and an appropriate protocol).

I'm not trying to diminish the importance of an easy to use library that abstracts away the socket-level code with a good protocol. I'm just saying that sending a socket over a socket isn't a good way to pitch it.


each time you say raw socket I think about: http://man7.org/linux/man-pages/man7/raw.7.html and http://en.wikipedia.org/wiki/Raw_socket So you mean IP sockets without UDP or TCP?


No, sorry, I mean regular TCP sockets without extra framing, as opposed to the spdy or websocket transport.


You can on plan9, you can even send it over serial if you like




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: