Skip to main content
4 of 4
edited title
j0s3
  • 31
  • 1
  • 3

Does every socket have its own buffers to send/receive messages?

I'm developping a C application that make extensive use of sockets.

My doubt is: Does every socket that I create have its own buffers to send and/or receive messages from other sockets?

In other words, can sockets be influenced by messages exchange erroneously?

By erroneously I mean that messages sent to one socket can be "leaked" to another socket without having written (and be it by mistake) program code that would explicitly transmit messages from the "intended" receiver to another socket.

j0s3
  • 31
  • 1
  • 3