Thread: How to use threads

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    10

    How to use threads

    I am writing a basic server/client chat program for the console using winsock.

    Im trying to figure out how I can get it to be able to send and recieve msgs all at the same time.. I came to the conclusion that threads must be the best way to do this..

    But I dont know how to do them so does anyone have a good tutorial somewhere, or another method I can use.

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Since you mention winsock, I am assuming you are on a windows platform. If you are, goto the ftp link in Dual-Catfish's signature and download the chm of Programming Windows by Charles Petzold. It should give you a descent introduction.

  3. #3
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Thats me!

    If you want a nice tutorial on threads, download "Programming C++ Applications for Microsoft Windows" by Jeff Richter off of my FTP.

    Here:

    ftp://24.222.58.100/C++/Windows/Prog...%20Richter.chm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-17-2008, 11:28 AM
  2. Yet another n00b in pthreads ...
    By dimis in forum C++ Programming
    Replies: 14
    Last Post: 04-07-2008, 12:43 AM
  3. Classes and Threads
    By Halloko in forum Windows Programming
    Replies: 9
    Last Post: 10-23-2005, 05:27 AM
  4. problem with win32 threads
    By pdmarshall in forum C++ Programming
    Replies: 6
    Last Post: 07-29-2004, 02:39 PM
  5. Block and wake up certain threads
    By Spark in forum C Programming
    Replies: 9
    Last Post: 06-01-2002, 03:39 AM