1
This commit is contained in:
parent
2c507795cb
commit
43d77618d0
@ -103,24 +103,6 @@ void GGListener::SendText(int sockhandle, const std::string& text)
|
||||
tcp_listener_->SendClientMsg(sockhandle, text.data(), text.size());
|
||||
}
|
||||
|
||||
void GGListener::SendError(int sockhandle, unsigned int seqid,
|
||||
int error_code, const std::string& error_msg,
|
||||
const char* file, int lineno, int error_param)
|
||||
{
|
||||
cs::SMRpcError msg;
|
||||
msg.set_error_code(error_code);
|
||||
msg.set_error_msg(error_msg);
|
||||
msg.set_debug_msg("");
|
||||
if (file) {
|
||||
msg.set_file(file);
|
||||
} else {
|
||||
msg.set_file("");
|
||||
}
|
||||
msg.set_lineno(lineno);
|
||||
msg.set_error_param(error_param);
|
||||
f8::Net_SendProxyMsg(tcp_listener_, sockhandle, seqid, error_code, cs::_SMRpcError, msg);
|
||||
}
|
||||
|
||||
void GGListener::ForceCloseClient(int sockhandle)
|
||||
{
|
||||
tcp_listener_->ForceCloseClient(sockhandle);
|
||||
|
@ -34,10 +34,6 @@ class GGListener : public a8::Singleton<GGListener>
|
||||
}
|
||||
void SendText(int sockhandle, const std::string& text);
|
||||
|
||||
void SendError(int sockhandle, unsigned int seqid,
|
||||
int error_code, const std::string& error_msg,
|
||||
const char* file = nullptr, int lineno = 0, int error_param = 0);
|
||||
|
||||
void ForceCloseClient(int sockhandle);
|
||||
void MarkClient(int sockhandle, bool is_active);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user