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); }
void LServer::messageCall(const TcpConnectionPtr& session, const tagCmd* cmd) { session->sendCmd(cmd); }