# Stubs for docker.utils.socket (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from ..transport import NpipeSocket
from typing import Any

STDOUT: int
STDERR: int

class SocketError(Exception): ...

def read(socket: Any, n: int = ...): ...
def read_exactly(socket: Any, n: Any): ...
def next_frame_header(socket: Any): ...
def frames_iter(socket: Any, tty: Any): ...
def frames_iter_no_tty(socket: Any) -> None: ...
def frames_iter_tty(socket: Any) -> None: ...
def consume_socket_output(frames: Any, demux: bool = ...): ...
def demux_adaptor(stream_id: Any, data: Any): ...

3b976c7ea68a74a8f85d9e31de0768adeb2356ef
<mask token>


class SocketError(Exception):
    ...


def read(socket: Any, n: int=...):
    ...


def read_exactly(socket: Any, n: Any):
    ...


def next_frame_header(socket: Any):
    ...


<mask token>


def frames_iter_no_tty(socket: Any) ->None:
    ...


<mask token>


def consume_socket_output(frames: Any, demux: bool=...):
    ...


def demux_adaptor(stream_id: Any, data: Any):
    ...

<mask token>


class SocketError(Exception):
    ...


def read(socket: Any, n: int=...):
    ...


def read_exactly(socket: Any, n: Any):
    ...


def next_frame_header(socket: Any):
    ...


def frames_iter(socket: Any, tty: Any):
    ...


def frames_iter_no_tty(socket: Any) ->None:
    ...


<mask token>


def consume_socket_output(frames: Any, demux: bool=...):
    ...


def demux_adaptor(stream_id: Any, data: Any):
    ...

<mask token>


class SocketError(Exception):
    ...


def read(socket: Any, n: int=...):
    ...


def read_exactly(socket: Any, n: Any):
    ...


def next_frame_header(socket: Any):
    ...


def frames_iter(socket: Any, tty: Any):
    ...


def frames_iter_no_tty(socket: Any) ->None:
    ...


def frames_iter_tty(socket: Any) ->None:
    ...


def consume_socket_output(frames: Any, demux: bool=...):
    ...


def demux_adaptor(stream_id: Any, data: Any):
    ...

<mask token>
STDOUT: int
STDERR: int


class SocketError(Exception):
    ...


def read(socket: Any, n: int=...):
    ...


def read_exactly(socket: Any, n: Any):
    ...


def next_frame_header(socket: Any):
    ...


def frames_iter(socket: Any, tty: Any):
    ...


def frames_iter_no_tty(socket: Any) ->None:
    ...


def frames_iter_tty(socket: Any) ->None:
    ...


def consume_socket_output(frames: Any, demux: bool=...):
    ...


def demux_adaptor(stream_id: Any, data: Any):
    ...

# Stubs for docker.utils.socket (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from ..transport import NpipeSocket
from typing import Any

STDOUT: int
STDERR: int

class SocketError(Exception): ...

def read(socket: Any, n: int = ...): ...
def read_exactly(socket: Any, n: Any): ...
def next_frame_header(socket: Any): ...
def frames_iter(socket: Any, tty: Any): ...
def frames_iter_no_tty(socket: Any) -> None: ...
def frames_iter_tty(socket: Any) -> None: ...
def consume_socket_output(frames: Any, demux: bool = ...): ...
def demux_adaptor(stream_id: Any, data: Any): ...
