Created the facilities for transmitting distributed objects and derived
classes over the wire (by inspecting their fields and sending those directly). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@8 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AuthResponse.java,v 1.3 2001/05/29 03:27:59 mdb Exp $
|
||||
// $Id: AuthResponse.java,v 1.4 2001/05/30 00:16:00 mdb Exp $
|
||||
|
||||
package com.samskivert.cocktail.cher.net;
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.IOException;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
|
||||
import com.samskivert.cocktail.cher.dobj.DObjectFactory;
|
||||
import com.samskivert.cocktail.cher.dobj.net.DObjectFactory;
|
||||
|
||||
/**
|
||||
* The auth response communicates authentication success or failure as
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AuthResponseData.java,v 1.2 2001/05/29 03:27:59 mdb Exp $
|
||||
// $Id: AuthResponseData.java,v 1.3 2001/05/30 00:16:00 mdb Exp $
|
||||
|
||||
package com.samskivert.cocktail.cher.net;
|
||||
|
||||
@@ -23,17 +23,8 @@ public class AuthResponseData extends DObject
|
||||
*/
|
||||
public String code;
|
||||
|
||||
public void writeTo (DataOutputStream out)
|
||||
throws IOException
|
||||
public String toString ()
|
||||
{
|
||||
super.writeTo(out);
|
||||
out.writeUTF(code);
|
||||
}
|
||||
|
||||
public void readFrom (DataInputStream in)
|
||||
throws IOException
|
||||
{
|
||||
super.readFrom(in);
|
||||
code = in.readUTF();
|
||||
return "[code=" + code + "]";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectResponse.java,v 1.3 2001/05/29 03:28:50 mdb Exp $
|
||||
// $Id: ObjectResponse.java,v 1.4 2001/05/30 00:16:00 mdb Exp $
|
||||
|
||||
package com.samskivert.cocktail.cher.net;
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
|
||||
import com.samskivert.cocktail.cher.dobj.DObject;
|
||||
import com.samskivert.cocktail.cher.dobj.DObjectFactory;
|
||||
import com.samskivert.cocktail.cher.dobj.net.DObjectFactory;
|
||||
|
||||
public class ObjectResponse extends DownstreamMessage
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user