Re: fdopen() on unix sockets and getline()
- From: pozz <pozzugno@xxxxxxxxx>
- Date: Sun, 27 Mar 2011 11:45:31 +0200
Il 26/03/2011 20:36, William Ahern ha scritto:
I know it's not impossible, but I hoped I could use line-buffered
streams to receive lines of text on a socket, with getline() or similar.
You've spent more time arguing that it's too difficult than actually coding.
:-) You're right, but, as I wrote, I hoped I could use getline() facilities. I'll make some code if it isn't possible, of course.
Here's what I came up with in 20 minutes, then spent a few minutes> [...]
debugging.
Thank you for the code. I'll have a look at it.
.
- References:
- fdopen() on unix sockets and getline()
- From: pozz
- Re: fdopen() on unix sockets and getline()
- From: Jens Thoms Toerring
- Re: fdopen() on unix sockets and getline()
- From: pozz
- Re: fdopen() on unix sockets and getline()
- From: William Ahern
- fdopen() on unix sockets and getline()
- Prev by Date: Re: fdopen() on unix sockets and getline()
- Next by Date: Re: fdopen() on unix sockets and getline()
- Previous by thread: Re: fdopen() on unix sockets and getline()
- Next by thread: Re: fdopen() on unix sockets and getline()
- Index(es):
Relevant Pages
|