Ë
    °Ó^já  ã                   ó   — d Z ddlZdefd„Zy)z$Collective module related utilities.é    NÚreturnc                  óÞ   — t        j                   t         j                  t         j                  «      5 } | j                  d«       | j	                  «       d   }ddd«       |S # 1 sw Y   S xY w)zÚReturns a port that's available during the function call. It doesn't prevent the
    port from being used after the function returns as we can't reserve the port. The
    utility makes a test more likely to pass.

    )z	127.0.0.1r   é   N)ÚsocketÚAF_INETÚSOCK_STREAMÚbindÚgetsockname)ÚserverÚports     úe/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/xgboost/testing/collective.pyÚget_avail_portr      s\   € ô 
�‰”v—~‘~¤v×'9Ñ'9Ó	:ð '¸fØ�‰Ð$Ô%Ø×!Ñ!Ó# AÑ&ˆ÷'ð €K÷'ð €Kús   ³%A"Á"A,)Ú__doc__r   Úintr   © ó    r   ú<module>r      s   ðÙ *ã ð	˜ô 	r   