2019-07-29 16:15:19 +00:00
|
|
|
from .pipe import DEFAULT_PERMISSIONS
|
|
|
|
from .pipe_reader_server import PipeReaderServer
|
|
|
|
from .pipe_writer_server import PipeWriterServer
|
|
|
|
|
|
|
|
|
|
|
|
class PipeIOServer(PipeReaderServer, PipeWriterServer):
|
|
|
|
# pylint: disable=abstract-method
|
|
|
|
def __init__(self, in_pipe, out_pipe, permissions=DEFAULT_PERMISSIONS):
|
|
|
|
super().__init__(
|
|
|
|
in_pipe=in_pipe,
|
|
|
|
out_pipe=out_pipe,
|
|
|
|
permissions=permissions
|
2019-06-23 16:22:04 +00:00
|
|
|
)
|
2019-06-23 16:40:06 +00:00
|
|
|
|
2019-07-30 11:04:08 +00:00
|
|
|
def _io_threads(self):
|
|
|
|
# pylint: disable=no-member
|
|
|
|
yield from PipeReaderServer._io_threads(self)
|
|
|
|
yield from PipeWriterServer._io_threads(self)
|