提供了一種簡(jiǎn)單的單向“進(jìn)程間通信”(interprocess communication,
I P C)機(jī)制。這個(gè)機(jī)制的名字非常古怪,叫作“郵槽”(M a i l s l o t)。用最簡(jiǎn)單的話來(lái)說(shuō),通過(guò)
郵槽,客戶機(jī)進(jìn)程可將消息傳送或廣播給一個(gè)或多個(gè)服務(wù)器進(jìn)程。
加密算法
Test Driver for Crypto++, a C++ Class Library of Cryptographic Primitives:
- To generate an RSA key
cryptest g
- To encrypt and decrypt a string using RSA
cryptest r
- To calculate MD5, SHS, and RIPEMD-160 message digests:
cryptest m file
- To encrypt and decrypt a string using DES-EDE in CBC mode:
cryptest t
- To encrypt or decrypt a file
cryptest e|d input output
- To share a file into shadows:
cryptest s <pieces> <pieces-needed> file
(make sure file has no extension, if you re running this under DOS)
- To reconstruct a file from shadows:
cryptest j output file1 file2 [....]
- To gzip a file:
cryptest z <compression-level> input output
- To gunzip a file:
cryptest u input output
- To run validation tests:
cryptest v
- To run benchmarks:
cryptest b [time for each benchmark in seconds]
use double link list to implenment memory allocation. There won t appear maloc, new, delete, in my code. All is using freelist to find a suitable memory space.