More work on invocation manager; modified startup sequence so that server
can get shit together before bootstrapping the client. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@68 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// $Id: BootstrapNotification.java,v 1.1 2001/07/19 07:09:16 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.net;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
|
||||
import com.threerings.cocktail.cher.dobj.io.DObjectFactory;
|
||||
|
||||
/**
|
||||
* A bootstrap notification is delivered to the client once the server has
|
||||
* fully initialized itself in preparation for dealing with this client.
|
||||
* The authentication process completes very early and further information
|
||||
* need be communicated to the client so that it can fully interact with
|
||||
* the server. This information is communicated via the bootstrap
|
||||
* notification.
|
||||
*/
|
||||
public class BootstrapNotification extends DownstreamMessage
|
||||
{
|
||||
/** The code for a bootstrap notification. */
|
||||
public static final short TYPE = TYPE_BASE + 1;
|
||||
|
||||
/**
|
||||
* Zero argument constructor used when unserializing an instance.
|
||||
*/
|
||||
public BootstrapNotification ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an bootstrap notification with the supplied data.
|
||||
*/
|
||||
public BootstrapNotification (BootstrapData data)
|
||||
{
|
||||
_data = data;
|
||||
}
|
||||
|
||||
public short getType ()
|
||||
{
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public BootstrapData getData ()
|
||||
{
|
||||
return _data;
|
||||
}
|
||||
|
||||
public void writeTo (DataOutputStream out)
|
||||
throws IOException
|
||||
{
|
||||
super.writeTo(out);
|
||||
DObjectFactory.writeTo(out, _data);
|
||||
}
|
||||
|
||||
public void readFrom (DataInputStream in)
|
||||
throws IOException
|
||||
{
|
||||
super.readFrom(in);
|
||||
_data = (BootstrapData)DObjectFactory.readFrom(in);
|
||||
}
|
||||
|
||||
/** The data associated with this notification. */
|
||||
protected BootstrapData _data;
|
||||
}
|
||||
Reference in New Issue
Block a user