def get_connection(self):
if self.host is None:<EOL><INDENT>connector = SpamCUnixConnector<EOL>conn = connector(self.socket_file, self.backend_mod)<EOL><DEDENT>else:<EOL><INDENT>connector = SpamCTcpConnector<EOL>conn = connector(<EOL>self.host,<EOL>self.port,<EOL>self.backend_mod,<EOL>is_ssl=self.is_ssl,<EOL>**self.ssl_args)<EOL><DEDENT>return conn<EOL>
Creates a new connection