示例#1
0
文件: LClient.cpp 项目: imace/kkS
void floodSend(TcpConnectionPtr& session)
{
    tagHello hello;
    strncpy(hello.msg, "Copyright 2010 by backkom. All rights reserved."
            "This software is the confidential and proprietary information of backkom."
            "('Confidential Information'). You shall not disclose such Confidential -"
            "Information and shall use it only in accordance with the terms of the - "
            "license agreement you entered into with backkom", 128);
    hello.size = rand() % 128 + 8;
    session->sendCmd(&hello);
}
示例#2
0
文件: LServer.cpp 项目: imace/kkS
void LServer::messageCall(const TcpConnectionPtr& session, const tagCmd* cmd)
{
	session->sendCmd(cmd);
}