Thread: tcp/ip chat

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,665
    Presumably each thread is waiting on say a socket for something interesting to happen?

    My preferred way would be to use select() with a timeout if you want each thread to run every so often, even if there is no network traffic.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #2
    Daring to be a guru
    Join Date
    Dec 2007
    Posts
    14
    hmmm..... me even thinkin so to use select but i almost did the entire thing based on thread now have to find a way to change the existin code.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Requesting Java Chat Client Maintenence
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-02-2003, 01:57 PM
  2. Chat server/client trial -- anyone interested?
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-23-2003, 10:47 PM
  3. SO close to finishing chat program...!
    By Nakeerb in forum C++ Programming
    Replies: 13
    Last Post: 10-26-2002, 12:24 PM
  4. Chat program advice
    By gogo in forum C++ Programming
    Replies: 11
    Last Post: 01-04-2002, 10:45 AM
  5. Rough Portable Chat Design Sketch
    By ggs in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-27-2001, 07:44 AM