NetworkServerUDP: introduce _uniqueID, simplify logging, deserialize using packet...
authorEddie <dev@fun2be.me>
Sat, 6 Jun 2015 09:17:36 +0000 (10:17 +0100)
committerEddie <dev@fun2be.me>
Sat, 6 Jun 2015 09:37:56 +0000 (10:37 +0100)
commit2adc842a7fc4d019e249018b663e58965d758640
treef51c9d354d633a24264ae0e300b4f2b4db191233
parentdb32f8e10028dd2c96f85835beca2df320a5ff4d
NetworkServerUDP: introduce _uniqueID, simplify logging, deserialize using packet length

 * Introduce _uniqueID
 * Simplify logging
 * Use packet length when deserializing
 * No longer update ServiceAddressMap

Introduce _uniqueID. Tag each outgoing NetworkMessage with this
service's unique ID to provide accurate loopback detection in receiver.

Use the super class simplified logging.

Pass the received DatagramPacket length when deserializing
NetworkMessage.

Do not try to update ServiceAddressMap. Leave to the NetworkMessageEventListener
which can access the messages contained within the NetworkMessage wrapper.
src/uk/ac/ntu/n0521366/wsyd/libs/net/NetworkServerUDP.java