Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.607 kB
#include "presents/stable.h"
#include "UsernamePasswordCreds.h"
using namespace presents::net;
DEFINE_STREAMABLE("com.threerings.presents.net.UsernamePasswordCreds", UsernamePasswordCreds);
void UsernamePasswordCreds::readObject (ObjectInputStream& in)
{
presents::net::Credentials::readObject(in);
username = boost::static_pointer_cast<util::Name>(in.readObject());
password = in.readField< utf8 >();
}
void UsernamePasswordCreds::writeObject (ObjectOutputStream& out) const
{
presents::net::Credentials::writeObject(out);
out.writeObject(username);
out.writeField(password);
}
Jump to Line
Something went wrong with that request. Please try again.