Exemplo n.º 1
0
    void sReadCallback(IAsyncResult result)
    {
        int    numRead = CryptStreamRead.EndRead(result);
        string s       = Encoding.ASCII.GetString(receiveBuffer);

        Debug.Log("Read " + numRead + " bytes of security data: " + s);
        phase = 2;
    }
Exemplo n.º 2
0
 public int EndRead(IAsyncResult asyncResult)
 {
     return(_decryptStream.EndRead(asyncResult));
 }