One write stream, one read stream on the same socket?

I am running eCos with the FreeBSD TCP / IP stack. Is it safe to have two streams read from a socket and one to write to the same socket?

Well, I guess since its FreeBSD stack the operating system doesn't matter.

Yours faithfully,

Frederick

+2


a source to share


1 answer


AFAIK, sockets are full duplex, which means we can read and write to the same socket at the same time. However, you have to make sure it only has 1 reader and 1 writer. Please correct me if I am wrong.



+5


a source







All Articles