Jason Tibbetts wrote:
> >>>>> "RS" == Russell Steinthal <firstname.lastname@example.org> writes:
> RS> We're probably nearing the limits of my socket programming knowledge,
> No problem; I just expanded mine a bit. The moral: when the Camel says not
> to mix select and buffered reads unless you really know what you're doing,
> and you don't really know what you're doing, you should heed the warning.
> The problem is, of course, that the getline call reads a lot more than one
> line and stuffs the rest in a buffer somewhere. Then the next select call
> comes up and it fails because there's nothing left to read from the socket.
> It's all in the buffer...
> Thankfully everything's OO down there, so I can make one localized change
> and everything else should fall into place.
> Please try this patch on for size:
Thanks, it seems to have fixed the problem. So now on to configuring and
testing this thing for real... :)
<email@example.com> Columbia College Class of 1999
<firstname.lastname@example.org> System Administrator, AV-Network