{"id":20852319,"url":"https://github.com/minizinc/cpp-integration","last_synced_at":"2026-04-22T15:37:05.647Z","repository":{"id":141199949,"uuid":"41952885","full_name":"MiniZinc/cpp-integration","owner":"MiniZinc","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-17T00:34:03.000Z","size":518,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-26T05:56:24.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MiniZinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-09-05T07:27:30.000Z","updated_at":"2023-10-11T03:20:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8af1d97-6b9b-490b-8903-791fe72f3699","html_url":"https://github.com/MiniZinc/cpp-integration","commit_stats":null,"previous_names":["minizinc/cpp-integration"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MiniZinc/cpp-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniZinc%2Fcpp-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniZinc%2Fcpp-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniZinc%2Fcpp-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniZinc%2Fcpp-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiniZinc","download_url":"https://codeload.github.com/MiniZinc/cpp-integration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniZinc%2Fcpp-integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32143661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T15:33:03.595Z","status":"ssl_error","status_checked_at":"2026-04-22T15:30:42.712Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:17:13.467Z","updated_at":"2026-04-22T15:37:05.626Z","avatar_url":"https://github.com/MiniZinc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n#### 1. Create a connector instance\n\n```c++\nunsigned int port = 6565;\n```\n\n```c++\nConnector c(port);\n```\n\n#### 2. Establish a connection and start a new search tree\n\n```c++\n/// Establishes a socket connection using the port specified above\nc.connect();\n\n/// Tells the profiler to start a new tree\nc.restart(\"example\");\n\n/// Also used in case of a restart with restart id specified\nc.restart(\"example\", 1);\n```\n\n#### 3. Send data every time the solver branches/fails/finds a solution\n\n```c++\n/// Create a node on a stack with mandatory fields\nNode node = c.createNode(node_id, parent_id, alt, kids, status);\n```\n\n```c++\n// Specify optional fields (whichever available)\nnode.set_label(\"b\");\n```\n\n```c++\n// Send the node\nc.sendNode(node);\n```\n\nOr all in one line:\n\n```c++\nc.createNode(node_id, parent_id, alt, kids, status).set_label(\"b\").send();\n```\n\n\nThe parameters are:\n\nfield   | type | description\n------  | ---- | -----------\nnode_id   | int | current node's identifier\nparent_id | int | identifier of node's parent\nalt       | int | which of its siblings the node is (0 for the left-most)\nkids      | int | number of children\nstatus    | Profiling::NodeStatus | determines the node's type (solution, failure, branching etc)\nlabel     | std::string | some text-based information to go along with the node (ie branching decision\n\n#### 4. Finish the tree and release the socket\n\n```c++\nc.done();\nc.disconnect();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminizinc%2Fcpp-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminizinc%2Fcpp-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminizinc%2Fcpp-integration/lists"}