Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Stream on Unix socket

Reply
Thread Tools

Stream on Unix socket

 
 
pozz
Guest
Posts: n/a
 
      03-25-2011
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?
 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      03-25-2011
pozz <> writes:
> 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.

[...]

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
 
Mark Bluemel
Guest
Posts: n/a
 
      03-25-2011
On 03/25/2011 02:53 PM, pozz wrote:
> I don't know if Unix sockets (or named sockets) are C standard. I
> think so, so I post on this ng.


No they're not.

<Off-topic>
If you want to work with them, I'd strongly recommend getting your
hands on a copy of <http://www.kohala.com/start/unpv12e.html>
</Off-topic>
 
Reply With Quote
 
Bill Cunningham
Guest
Posts: n/a
 
      03-27-2011
Mark Bluemel wrote:
> On 03/25/2011 02:53 PM, pozz wrote:
>> I don't know if Unix sockets (or named sockets) are C standard. I
>> think so, so I post on this ng.

>
> No they're not.
>
> <Off-topic>
> If you want to work with them, I'd strongly recommend getting your
> hands on a copy of <http://www.kohala.com/start/unpv12e.html>
> </Off-topic>


Great book. I've got it.

Bill


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 1 02-03-2009 06:20 AM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 0 02-01-2009 12:45 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57