コード例 #1
0
ファイル: chatClient.cpp プロジェクト: fengzhyuan/INET
bool Client::isOwnMessage(string_ptr message)
{
    if(message->find(*strPrompt) != string::npos)
        return true;
    else
        return false;
}
コード例 #2
0
ファイル: client.cpp プロジェクト: hanchen999/OS94
bool isOwnMessage(string_ptr message)
{
    if(message->find(*promptCpy) != string::npos)
        return true;
    else
        return false;
}
コード例 #3
0
ファイル: server.cpp プロジェクト: LudwikJaniuk/chat_test
bool clientSentExit(string_ptr message)
{
	if(message->find("exit") != string::npos)
		return true;
	else
		return false;
}