Re: fdopen() on unix sockets and getline()



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.
.



Relevant Pages

  • Re: PokerStars is a SHAM - This is not a rant.
    ... time arguing with the it's rigged crowd. ... Online sites are crooked, PERIOD. ... why would any PRO play anything ELSE? ... better, even with time spent going to and fro, plus expenses. ...
    (rec.gambling.poker)
  • CIMAS
    ... I wrote something for the guest book there praising its resources ... Perhaps if more people spent less time arguing about global warming ...
    (sci.geo.oceanography)
  • Re: Full Text of Mike Procters Judgement
    ... but you've spent a lot more time arguing that Symonds and Co ... their word is as good as 3 neutral witnesses. ...
    (rec.sport.cricket)
  • Re: Has anyone got an example of using CAsyncSocket to connect and read/write data to an internet co
    ... books like Quinn & Shute's Windows Network Programming and Comer & Stevens' ... Internetowrking with TCP/IP, and had spent ten minutes ... talking with a guy who had done a lot of socket programming, who gave me the clue that I ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: PokerStars is a SHAM - This is not a rant.
    ... I've only been on RGP for like 3 years, but I spent a big part of that ... time arguing with the it's rigged crowd. ... kill-files, watch-lists, favorites, and more.. ...
    (rec.gambling.poker)