Stream on Unix socket

P

pozz

I don't know if Unix sockets (or named sockets) are C standard. I
think so, so I post on this ng.

I need to have a bidirectional communication between two different
process on the same computer. I'm using named socket with success.

The protocol is on a text basis and is based on messages with an
ending newline character (\n).

Is it possible to have a stream pointer (FILE *) from the socket file
descriptor so I'll be able to use fprintf() and similar functions?
 
K

Keith Thompson

pozz said:
I don't know if Unix sockets (or named sockets) are C standard. I
think so, so I post on this ng.

They aren't. Try comp.unix.programmer.

[...]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top