Flush or something....
Hey. As some of you know, I am writing an IRC bot/client. It goes quite well most of the time, but sometimes it just sits there and doesn't receive/send anything. It will usually sit that way for a minute or so, and then receive/send everything in a huge glob. Is there any way that i can tell the buffers to flush automatically every 10 milliseconds or something, so i don't lose touch with the IRC server and ping off? Let me know. Thanks in advance.
P.S. And for those nterested, the main bulk of the program is attached. There are only one or two functions that I use from the headers, and i don't want to mess with tar/gzip.