'initialize NAWS by storing protocol on ourselves and calling
the client to see if it supports NAWS.
Args:
protocol (Protocol): The active protocol instance.'

def __init__(self, protocol):

    self.naws_step = 0
    self.protocol = protocol
    self.protocol.protocol_flags['SCREENWIDTH'] = {0: DEFAULT_WIDTH}
    self.protocol.protocol_flags['SCREENHEIGHT'] = {0: DEFAULT_HEIGHT}
    self.protocol.negotiationMap[NAWS] = self.negotiate_sizes
    self.protocol.do(NAWS).addCallbacks(self.do_naws, self.no_naws)
