A bitmask of flags may be supplied, which may include:
- NEO4J_INSECURE - do not attempt to establish a secure connection. If a
secure connection is required, then connect will fail with errno set to
NEO4J_SERVER_REQUIRES_SECURE_CONNECTION.
If no flags are required, pass 0 or NEO4J_CONNECT_DEFAULT.
@param hostname The hostname to connect to.
@param port The port to connect to.
@param config The neo4j client configuration to use for this connection.
@param flags A bitmask of flags to control connections.
@return A pointer to a neo4j_connection_t structure, or NULL on error
(errno will be set).
Establish a connection to a neo4j server.
A bitmask of flags may be supplied, which may include: - NEO4J_INSECURE - do not attempt to establish a secure connection. If a secure connection is required, then connect will fail with errno set to NEO4J_SERVER_REQUIRES_SECURE_CONNECTION.
If no flags are required, pass 0 or NEO4J_CONNECT_DEFAULT.
@param hostname The hostname to connect to. @param port The port to connect to. @param config The neo4j client configuration to use for this connection. @param flags A bitmask of flags to control connections. @return A pointer to a neo4j_connection_t structure, or NULL on error (errno will be set).