code: def setsockopt(self, *sockopts):
          
          if type(sockopts[0]) in (list, tuple):
              for sock_opt in sockopts[0]:
                  level, option, value = sock_opt
                  self.connection.sockopts.add((level, option, value))
          else:
              level, option, value = sockopts
              self.connection.sockopts.add((level, option, value))
docs: Add socket options to set