Thread: thread termination

  1. #1
    JagWire
    Guest

    Question thread termination

    im in the process of creating a bot like irc client to hold my channels while on irc. It does everything right except when it gets to the end of a seperate thread. This thread receives info from the server and searches it for a PING message, and if it finds one, it sends it back in a PONG message.
    Now it works ok mainly, but when its over, it doesnt want to terminate so after it sends the ping, it time's out. Anyone have any idea whats wrong? [email protected] is my email address if you want source code, just email me.

  2. #2
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    How about increasing the KEEP ALIVE value for that socket?

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: thread termination

    Originally posted by JagWire
    Anyone have any idea whats wrong? [email protected] is my email address if you want source code, just email me.
    You'd do better picking a section of your code that is relevant to your question, and posting it here...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2009, 11:48 PM
  2. Terminating secondary thread from another thread
    By wssoh85 in forum C++ Programming
    Replies: 13
    Last Post: 12-19-2008, 05:14 AM
  3. Thread Prog in C language (seg fault)
    By kumars in forum C Programming
    Replies: 22
    Last Post: 10-09-2008, 01:17 PM
  4. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  5. pointer to main thread from worker thread?
    By draegon in forum C++ Programming
    Replies: 2
    Last Post: 10-27-2005, 06:35 AM