mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
22 lines
419 B
Python
22 lines
419 B
Python
"""
|
|
@author: kedaji
|
|
"""
|
|
|
|
|
|
class DynamicPortAllocator:
|
|
|
|
@staticmethod
|
|
def allocate(port: int, user_data_path: str) -> tuple: ...
|
|
|
|
@staticmethod
|
|
def get_mapped_user_data_path(port: int) -> str: ...
|
|
|
|
@staticmethod
|
|
def get_mapped_port(user_data_path: str) -> int: ...
|
|
|
|
@staticmethod
|
|
def port_allocated(port: int) -> bool: ...
|
|
|
|
@staticmethod
|
|
def port_occupied(port: int) -> bool: ...
|