linux - Default protocol for AF_UNIX sockets -
i'm curious default protocol af_unix sock_stream socket. i'm trying track down packet overhead should be, can't figure out protocol used default. suspect it's not ipproto_tcp because this:
socketpair(af_unix, sock_stream, 0, sfd) works while, this:
socketpair(af_unix, sock_stream, ipproto_tcp, sfd) gives "protocol not supported error".
since af_unix unix socket local thing, there's no such thing added protocol overhead in case. can use in sock_stream or sock_dgram mode make connection-oriented or connectionless, respectively, that's all: no protocol headers added , traverses none of network or transport protocol implementations in network stack.
Comments
Post a Comment