Package com.esotericsoftware.kryonet.rmi.ObjectSpace

Examples of com.esotericsoftware.kryonet.rmi.ObjectSpace.RemoteObjectSerializer


    register(serverKryo);

    // After all common registrations, register OtherObjectImpl only on the server using the remote object interface ID.
    // This causes OtherObjectImpl to be serialized as OtherObject.
    int otherObjectID = serverKryo.getRegistration(OtherObject.class).getId();
    serverKryo.register(OtherObjectImpl.class, new RemoteObjectSerializer(), otherObjectID);

    startEndPoint(server);
    server.bind(tcpPort);

    // TestObjectImpl has a reference to an OtherObjectImpl.
View Full Code Here


  }

  /** Registers the same classes in the same order on both the client and server. */
  static public void register (Kryo kryo) {
    kryo.register(TestObject.class);
    kryo.register(OtherObject.class, new RemoteObjectSerializer());
    ObjectSpace.registerClasses(kryo);
  }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryonet.rmi.ObjectSpace.RemoteObjectSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.