def __init__(self, socket, socket_read_size):
    self._sock = socket
    self.socket_read_size = socket_read_size
    self._buffer = BytesIO()
    self.bytes_written = 0
    self.bytes_read = 0
def __init__(self, socket, socket_read_size):
    self._sock = socket
    self.socket_read_size = socket_read_size
    self._buffer = BytesIO()
    self.bytes_written = 0
    self.bytes_read = 0