Much work on generalizing the notion of message "transport" and
allowing the use of annotations to customize transport for DObject fields and service/receiver methods. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5099 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -376,7 +376,6 @@ public abstract class Connection implements NetEventHandler
|
||||
return; // received out of order
|
||||
}
|
||||
msg.received = when;
|
||||
msg.datagram = true;
|
||||
_handler.handleMessage(msg);
|
||||
|
||||
} catch (ClassNotFoundException cnfe) {
|
||||
|
||||
@@ -850,7 +850,7 @@ public class ConnectionManager extends LoopingThread
|
||||
|
||||
try {
|
||||
// send it as a datagram if hinted and possible
|
||||
if (msg.datagram && conn.getDatagramAddress() != null) {
|
||||
if (!msg.getTransport().isReliable() && conn.getDatagramAddress() != null) {
|
||||
postDatagram(conn, msg);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user