Thread: Select: Bad File Number

  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.

  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, 01:19 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. file select
    By EllieProgrammer in forum C Programming
    Replies: 6
    Last Post: 04-11-2005, 11:00 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM