Lines Matching refs:wfile
773 # - wfile: a file object to which the reply is written
774 # When the handle() method returns, wfile is flushed properly
779 """Define self.rfile and self.wfile for stream sockets."""
781 # Default buffer sizes for rfile, wfile.
784 # wfile unbuffered because (a) often after a write() we want to
807 self.wfile = _SocketWriter(self.connection)
809 self.wfile = self.connection.makefile('wb', self.wbufsize)
812 if not self.wfile.closed:
814 self.wfile.flush()
819 self.wfile.close()
843 """Define self.rfile and self.wfile for datagram sockets."""
849 self.wfile = BytesIO()
852 self.socket.sendto(self.wfile.getvalue(), self.client_address)