All pastes #151882 Raw Edit

Anonymous

public cpp v1 · immutable
#151882 ·published 2006-08-28 13:30 UTC
rendered paste body
    struct PeerStats    {      std::string username;      unsigned int speed;      unsigned int downloads;      unsigned int files;      unsigned int dirs;    }              case Moo::M_PEER_STATS:              {                PeerStats stats;                stats.username  = Moo::IO::unpack_string (read_data, offset);                stats.speed = Moo::IO::unpack_uint (read_data, offset);                stats.downloads = Moo::IO::unpack_uint (read_data, offset);                stats.files = Moo::IO::unpack_uint (read_data, offset);                stats.dirs = Moo::IO::unpack_uint (read_data, offset);                break;              }