コード例 #1
0
    public void ReceiveMessage(CNSMessageClient sender, string cryptText)
    {
        MessageReceivingParams p = incomingMessages[sender];
        string message;

        if (p.DecryptMessage(cryptText, out message))
        {
            OnMessageRecievedCallback?.Invoke(message);
            CNSClientManager.WriteLine("Received a verified message at Client " + clientID + " from Client " + sender.clientID + " : " + message);
        }
        else
        {
            OnMessageFailedCallback?.Invoke();
        }
    }
コード例 #2
0
 private void LogOut(string message)
 {
     CNSClientManager.WriteLine(message);
 }