简体   繁体   中英

Which layer is Unix socket on?

I am trying to use Unix Socket to implement IPC and I know that Unix Socket is much more faster than TCP, but I still have 2 questions.

  1. Is Unix Socket reliable as TCP?
  2. Which layer is Unix Socket on in OSI?
  1. Unix sockets are reliable like TCP, provided the sender and receiver keep participating.
  2. A unix socket does not map to the OSI network socket layers. It is local only, between two processes on the same machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM