diff --git a/src/java/com/threerings/presents/peer/server/PeerNode.java b/src/java/com/threerings/presents/peer/server/PeerNode.java index d7e217e97..49d6cb33a 100644 --- a/src/java/com/threerings/presents/peer/server/PeerNode.java +++ b/src/java/com/threerings/presents/peer/server/PeerNode.java @@ -26,8 +26,10 @@ import java.util.Date; import com.samskivert.util.ResultListenerList; +import com.threerings.presents.client.BlockingCommunicator; import com.threerings.presents.client.Client; import com.threerings.presents.client.ClientObserver; +import com.threerings.presents.client.Communicator; import com.threerings.presents.server.PresentsServer; import com.threerings.presents.dobj.AttributeChangeListener; @@ -68,6 +70,11 @@ public class PeerNode // properly deal with it event.eventId = PresentsServer.omgr.getNextEventId(true); } + protected Communicator createCommunicator () { + // TODO: make a custom communicator that uses the ClientManager NIO system to do + // its I/O instead of using two threads and blocking socket I/O + return new BlockingCommunicator(this); + } }; _client.addClientObserver(this); }