Use the bare BlockingCommunicator in the PeerNode instead of the

ClientCommunicator which does stuff like try to save its preferred connection
port using the Java preference system (which is no longer available to server
processes due to the removal of their home directories).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4836 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-10-01 23:47:02 +00:00
parent ab632ffe83
commit 4cc4c3c9f1
@@ -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);
}