1f010f0a4e
It provides code generators for streamables, services and receivers, but not DObject. It uses Apple's CFNetwork for its sockets and builds with XCode, so it's limited to OS X and iOS. It should be straightforward to replace both to make it cross-platform. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6264 542714f4-19e9-0310-aa3c-eee0fc999fb1
22 lines
652 B
C++
22 lines
652 B
C++
#include "presents/stable.h"
|
|
#include "BootstrapData.h"
|
|
#include "presents/Streamer.h"
|
|
|
|
using namespace presents::net;
|
|
|
|
DEFINE_STREAMABLE("com.threerings.presents.net.BootstrapData", BootstrapData);
|
|
|
|
void BootstrapData::readObject (ObjectInputStream& in)
|
|
{
|
|
connectionId = int32(in.readInt());
|
|
clientOid = int32(in.readInt());
|
|
services = boost::static_pointer_cast< std::vector< Shared<presents::data::InvocationMarshaller> > >(in.readField(JAVA_LIST_NAME()));
|
|
}
|
|
|
|
void BootstrapData::writeObject (ObjectOutputStream& out) const
|
|
{
|
|
out.writeInt(connectionId);
|
|
out.writeInt(clientOid);
|
|
out.writeField(services, JAVA_LIST_NAME());
|
|
}
|