|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.client.Communicator
com.threerings.presents.server.net.ServerCommunicator
public class ServerCommunicator
Provides Client Communicator services using non-blocking I/O and the connection manager.
| Field Summary | |
|---|---|
protected PresentsConnectionManager |
_conmgr
|
protected PresentsConnection |
_conn
|
protected ClassLoader |
_loader
|
protected Exception |
_logonError
|
protected RootDObjectManager |
_rootmgr
|
protected static boolean |
PING_DEBUG
|
| Fields inherited from class com.threerings.presents.client.Communicator |
|---|
_client, _lastWrite, _omgr |
| Constructor Summary | |
|---|---|
ServerCommunicator(Client client,
PresentsConnectionManager conmgr,
RootDObjectManager rootmgr)
|
|
| Method Summary | |
|---|---|
void |
gotBootstrap()
Notifies the communicator that the client has received its bootstrap data. |
void |
logoff()
Delivers a logoff notification to the server and shuts down the network connection. |
void |
logon()
Logs on to the server and initiates our full-duplex message exchange. |
protected void |
logonSucceeded(AuthResponseData data)
Called when the authentication process completes successfully. |
void |
postMessage(UpstreamMessage msg)
Queues up the specified message for delivery upstream. |
void |
setClassLoader(ClassLoader loader)
Configures this communicator with a custom class loader to be used when reading and writing objects over the network. |
protected void |
shutdown()
|
| Methods inherited from class com.threerings.presents.client.Communicator |
|---|
clientCleanup, getLastWrite, getTransmitDatagrams, gotAuthResponse, notifyClientObservers, processMessage, updateWriteStamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PresentsConnectionManager _conmgr
protected RootDObjectManager _rootmgr
protected PresentsConnection _conn
protected ClassLoader _loader
protected Exception _logonError
protected static final boolean PING_DEBUG
| Constructor Detail |
|---|
public ServerCommunicator(Client client,
PresentsConnectionManager conmgr,
RootDObjectManager rootmgr)
| Method Detail |
|---|
public void logon()
Communicator
logon in class Communicatorpublic void logoff()
Communicator
logoff in class Communicatorpublic void gotBootstrap()
Communicator
gotBootstrap in class Communicatorpublic void postMessage(UpstreamMessage msg)
Communicator
postMessage in class Communicatorpublic void setClassLoader(ClassLoader loader)
Communicator
setClassLoader in class Communicatorprotected void logonSucceeded(AuthResponseData data)
Communicator
logonSucceeded in class Communicatorprotected void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||