|
@@ -207,7 +207,7 @@ public static void initializeSerializables() {
|
|
}
|
|
}
|
|
----
|
|
----
|
|
|
|
|
|
-The method is located in a class we created for messaging, that is common to both the client and server and is named `NetCommon`. We then call this method from `simpleInitApp` after creating but BEFORE starting the server as shown.
|
|
|
|
|
|
+The method is located in a class we created for messaging, that is common to both the client and server and is named `NetMessaging`. We then call this method from `simpleInitApp` after creating but BEFORE starting the server as shown.
|
|
|
|
|
|
[source, java]
|
|
[source, java]
|
|
----
|
|
----
|
|
@@ -216,7 +216,7 @@ public void simpleInitApp() {
|
|
|
|
|
|
...
|
|
...
|
|
Server myServer = Network.createServer(6143);
|
|
Server myServer = Network.createServer(6143);
|
|
- NetCommon.initializeSerializables();
|
|
|
|
|
|
+ NetMessaging.initializeSerializables();
|
|
server.start();
|
|
server.start();
|
|
...
|
|
...
|
|
}
|
|
}
|