)]}'
{
  "commit": "1ceeccbbc0ae6f0c36c24ef593082d1f36ca0f5a",
  "tree": "1de6c130a71f5b106a508331a8755e01603bc11d",
  "parents": [
    "e554bd1033ebc6e78b242a6e3c210f1efb3c5a34"
  ],
  "author": {
    "name": "Cheng Sheng",
    "email": "jeru.sheng@gmail.com",
    "time": "Sun Mar 03 22:38:32 2024 +0100"
  },
  "committer": {
    "name": "Cheng Sheng",
    "email": "jeru.sheng@gmail.com",
    "time": "Wed Mar 13 19:34:05 2024 +0100"
  },
  "message": "open_tcp_server_transport: allow explicit sock as input.\n\nWhen a user doesn\u0027t need an exact port, but cares more about getting\nSOME unused port, they can do:\n* Create a socket outside with port\u003dNone or port\u003d0.\n* Use socket.getsockname()[1] to get the allocated port and pass to the\nTCP client somehow.\n* Use the created socket to create a TCP server transport.\n\nUse-case: unit-testing embedded software that implements a BLE host. The\ncontroller will be a Bumble controller, connected to the host via a TCP\nchannel.\n* The host will have a TCP-client HCI transport for testing.\n* The pytest setup code will allocate the TCP server and pass the port\nnumber to the host.\n\nAlso add some unittests with python mock.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "830ec1a47696373d02c464c46dbdece2924cf78d",
      "old_mode": 33188,
      "old_path": ".gitignore",
      "new_id": "f746ac5f08d2f1248d730de532d809cc7bcab14e",
      "new_mode": 33188,
      "new_path": ".gitignore"
    },
    {
      "type": "modify",
      "old_id": "77d030467b483c6976cbcd318d72a03536299bbb",
      "old_mode": 33188,
      "old_path": "bumble/transport/tcp_server.py",
      "new_id": "8991ead00f7b00082fff35809418a61c11b74c5f",
      "new_mode": 33188,
      "new_path": "bumble/transport/tcp_server.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a5f015d9f109bc2e072b2afc9f0fba8db6f3e097",
      "new_mode": 33188,
      "new_path": "tests/transport_tcp_server_test.py"
    }
  ]
}
