title: operator= on fd_set - socket communication linux
body: <p>I'm writing a program that uses select(), given a to-read fd_set.<br>
  In the program, i'm saving two fd_sets:<br>
  1. fd_set named DB with all the fd's i can deal with.<br>
  2. fd_set named toSelect - which i send to the select() method, and handles later after the select() returns.</p>
  
  <p>Before calling to select(), i'm doing this:<br>
  toSelect = DB;<br>
  In order to copy all the fd's in DB to the toSelect fd_set.<br>
  Since my program isn't working so well (coming up with the message "Connection reset by peer"), there's probably something wrong with my code.<br>
  Is this assignment is ok?
  If not, how can i copy one fd_set to another without using the operator= ?<br>
  Thank you.</p>