parameters: (self, seq)
return_statement: return self.payloadsize % MAX_PAYLOAD_SIZE
docstring: Returns the calculated payload size for the particular packet
  
          Arguments:
          seq -- the sequence number
docstring_summary: Returns the calculated payload size for the particular packet
docstring_tokens: Returns the calculated payload size for the particular packet
function: def get_payload_size(self, seq):
          """Returns the calculated payload size for the particular packet
  
          Arguments:
          seq -- the sequence number
          """
          if self.maxseq == 1:
              return self.payloadsize
  
          if seq < self.maxseq:
              return MAX_PAYLOAD_SIZE
  
          return self.payloadsize % MAX_PAYLOAD_SIZE
function_tokens: def get_payload_size ( self , seq ) : if self . maxseq == 1 : return self . payloadsize if seq < self . maxseq : return MAX_PAYLOAD_SIZE return self . payloadsize % MAX_PAYLOAD_SIZE