Convert the old style internal:network element to a new style
.mudpy.network element and adjust the initialize_server_socket()
function accordingly.
.mudpy.movement.west.exit_term: to the west
.mudpy.movement.west.vector: [-1,0,0]
-internal:network:
- host: ::1
- #host: 127.0.0.1
- port: 6669
+.mudpy.network.host: '::1'
+.mudpy.network.port: 6669
internal:process:
#daemon: yes
"""Create and open the listening socket."""
# need to know the local address and port number for the listener
- host = self.categories["internal"]["network"].get("host")
- port = self.categories["internal"]["network"].get("port")
+ host = self.contents["mudpy.network"].get("host")
+ port = self.contents["mudpy.network"].get("port")
# if no host was specified, bind to all local addresses (preferring
# ipv6)