def _send(self):
data = self.output_buffer.view()<EOL>if not data:<EOL><INDENT>return<EOL><DEDENT>if self.closed():<EOL><INDENT>raise self.Error("<STR_LIT>".format(self.server.address))<EOL><DEDENT>if self.defunct():<EOL><INDENT>raise self.Error("<STR_LIT>".format(self.server.address))<EOL><DEDENT>self.socket.sendall(data)<EOL>self.output_buffer.clear()<EOL>
Send all queued messages to the server.