protocol.cpp
来自「ACE编程的一本经典BIBLE的源代码,喜欢网络编程的别错过」· C++ 代码 · 共 32 行
CPP
32 行
// file : ACE_TMCast/Protocol.cpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : Protocol.cpp,v 1.3 2005/01/03 14:05:41 schmidt Exp
#include "Protocol.hpp"
namespace ACE_TMCast
{
namespace Protocol
{
/*
namespace
{
char const* labels[] = {
"NONE", "BEGIN", "COMMIT", "ABORT", "COMMITED", "ABORTED"};
}
std::string
tslabel (Protocol::TransactionStatus s)
{
return labels[s];
}
std::ostream&
operator << (std::ostream& o, Transaction const& t)
{
return o << "{" << t.id << "; " << tslabel (t.status) << "}";
}
*/
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?