# DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.

from __future__ import annotations
import typing

from ..context import get_connection_context, get_session_context

import cdp.tethering
from cdp.tethering import (
    Accepted
)


async def bind(
        port: int
    ) -> None:
    '''
    Request browser port binding.

    :param port: Port number to bind.
    '''
    session = get_session_context('tethering.bind')
    return await session.execute(cdp.tethering.bind(port))


async def unbind(
        port: int
    ) -> None:
    '''
    Request browser port unbinding.

    :param port: Port number to unbind.
    '''
    session = get_session_context('tethering.unbind')
    return await session.execute(cdp.tethering.unbind(port))
