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.
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.
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 ).
Thank you anyway. I won't bother you anymore.