Flush or something....

This is a discussion on Flush or something.... within the Linux Programming forums, part of the Platform Specific Boards category; Hey. As some of you know, I am writing an IRC bot/client. It goes quite well most of the time, ...

  1. #1
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281

    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.

    ~Inquirer


    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.
    Attached Files Attached Files
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with input flush
    By KarrieWojo in forum C Programming
    Replies: 12
    Last Post: 12-29-2007, 02:38 AM
  2. endl - \n
    By Hugo716 in forum C++ Programming
    Replies: 8
    Last Post: 05-25-2006, 03:33 PM
  3. flush socket
    By Snip in forum Networking/Device Communication
    Replies: 17
    Last Post: 02-08-2005, 09:29 PM
  4. How do I print a pattern flush right?
    By Basia in forum C Programming
    Replies: 5
    Last Post: 06-11-2002, 08:15 AM
  5. Can someone xplain FLUSH in strings?
    By aspand in forum C Programming
    Replies: 9
    Last Post: 05-13-2002, 01:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21