class_docstr: Socket implementation of TServerTransport base.
code: def listen(self):
      res0 = self._resolveAddr()
      socket_family = (
          self._socket_family == socket.AF_UNSPEC
          and socket.AF_INET6
          or self._socket_family
      )
      for res in res0:
          if res[0] is socket_family or res is res0[-1]:
              break
  
      # We need remove the old unix socket if the file exists and
      # nobody is listening on it.
      if self._unix_socket:
          tmp = socket.socket(res[0], res[1])
          try:
              tmp.connect(res[4])
          except socket.error as err:
              eno, message = err.args
              if eno == errno.ECONNREFUSED:
                  os.unlink(res[4])
  
      self.handle = s = socket.socket(res[0], res[1])
      if s.family is socket.AF_INET6:
          s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
      s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
      if hasattr(s, "settimeout"):
          s.settimeout(None)
      s.bind(res[4])
      s.listen(self._backlog)
  
imports: import errno
  import logging
  import os
  import socket
  import sys
  from .TTransport import TTransportBase, TTransportException, TServerTransportBase
label_desc: Use image node_id 3 for calling the TServerSocket obj's underlying member method code with example usage: obj.listen() without return types