Select: Bad File Number

This is a discussion on Select: Bad File Number within the C++ Programming forums, part of the General Programming Boards category; I am useing select in a chat program to read and write to clients. However when it is run after ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    99

    Select: Bad File Number

    I am useing select in a chat program to read and write to clients. However when it is run after asking the user for his/her username I get a "select: Bad File Number" error. Sources included in zip.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    99
    I am using that to check to see who wants to say something, and if the activity is coming from the server then someone must be trying to connect so that person is accepted and then set to the set. After that loop i run through all connections to say if there is anymore speech or connections. Maybe I have bad logic behind this.

    That is about half the code and I wasn't sure if the problem was in the client ( as someone has said ) or the server ( which is where I thought it might have been ).

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    99
    Thank you anyway. I won't bother you anymore.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  4. file select
    By EllieProgrammer in forum C Programming
    Replies: 6
    Last Post: 04-11-2005, 12:00 PM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM

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