Port fileno() to use self.client correctly