0

How does a unix domain socket packet look like? Is it like a TCP/IP packet which have an ethernet header, an IP header and a TCP header? How do they look like in unix domain socket?

    1 Answer 1

    0

    Unix domain sockets are not transmitted over the wire, they only exist inside the one machine. So they don't have a packet header in that sense.

    AFAIK stream oriented unix domain sockets (SOCK_STREAM) are not even broken into packets as such. Message oriented sockets (SOCK_DGRAM) may have a data structure associated with each message although this will be entirely internal to the Kernel.

    1
    • Thanks for the reply, any source code reference is appreciated.
      – William
      CommentedJul 10, 2024 at 2:41

    You must log in to answer this question.

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.