code: def bind(self, server, net=None, address=None):
          
          if _debug: NetworkServiceAccessPoint._debug("bind %r net=%r address=%r", server, net, address)
  
          # make sure this hasn't already been called with this network
          if net in self.adapters:
              raise RuntimeError("already bound")
  
          # create an adapter object, add it to our map
          adapter = NetworkAdapter(self, net)
          self.adapters[net] = adapter
          if _debug: NetworkServiceAccessPoint._debug("    - adapters[%r]: %r", net, adapter)
  
          # if the address was given, make it the "local" one
          if address and not self.local_address:
              self.local_adapter = adapter
              self.local_address = address
  
          # bind to the server
          bind(adapter, server)
docs: Create a network adapter object and bind.