Note the actual transport with which events are transmitted.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5794 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2009-05-21 18:41:42 +00:00
parent d45b0bdb00
commit 31e9807c05
4 changed files with 43 additions and 0 deletions
@@ -62,6 +62,7 @@ import com.threerings.presents.client.Client;
import com.threerings.presents.data.ConMgrStats;
import com.threerings.presents.net.Message;
import com.threerings.presents.net.PongResponse;
import com.threerings.presents.net.Transport;
import com.threerings.presents.server.Authenticator;
import com.threerings.presents.server.ChainedAuthenticator;
import com.threerings.presents.server.ClientManager;
@@ -923,6 +924,9 @@ public class ConnectionManager extends LoopingThread
return;
}
// note the actual transport
msg.noteActualTransport(Transport.RELIABLE_ORDERED);
_framer.resetFrame();
// flatten this message using the connection's output stream
@@ -963,6 +967,9 @@ public class ConnectionManager extends LoopingThread
return false;
}
// note the actual transport
msg.noteActualTransport(Transport.UNRELIABLE_UNORDERED);
// extract as a byte array
byte[] data = _flattener.toByteArray();