コード例 #1
0
void xnet_handshake_message::set_uuid(const xstring& uuid)
{
    try
    {
        xuuid_string_generator uuid_str_gen;
        uuid_ = uuid_str_gen(uuid);
    }
    catch (...)
    {
        xdebug_info(xchar_format(xtr(_X("Failed to create UUID from string \"{1}\"."))) % uuid);
    }
}
コード例 #2
0
void xnet_handshake_message_handler::append_uuid(const xstring& uuid)
{
    try
    {
        xuuid_string_generator uuid_str_gen;
        xdebug_info(xchar_format(xtr(_X("Adding UUID \"{1}\" to acceptable UUID list."))) % uuid);
        acceptable_uuids().insert(uuid_str_gen(uuid));
    }
    catch (...)
    {
        xdebug_info(xchar_format(xtr(_X("Failed to add \"{1}\" to acceptable UUID list."))) % uuid);
    }
}