def set_wndsize(self, sndwnd=32, rcvwnd=32):
        """
        set maximum window size: sndwnd=32, rcvwnd=32 by default
        """
        if sndwnd > 0:
            self.snd_wnd = sndwnd
        if rcvwnd > 0:
            self.rcv_wnd = max(rcvwnd, IKCP_WND_RCV)

        set maximum window size: sndwnd=32, rcvwnd=32 by default
        
pycharm2020.1.3/script/core/common/rudp.py