code: def bind(self, family, type, proto=0):
          
          sock = self.prepare_socket(
              self.bind_addr,
              family, type, proto,
              self.nodelay, self.ssl_adapter,
          )
          sock = self.socket = self.bind_socket(sock, self.bind_addr)
          self.bind_addr = self.resolve_real_bind_addr(sock)
          return sock
docs: Create (or recreate) the actual socket object.