Import the first cut for manual pages.
[openssl.git] / doc / s_mult.doc
1 s_mult is a test program I hacked up on a Sunday for testing non-blocking
2 IO.  It has a select loop at it's centre that handles multiple readers
3 and writers.
4
5 Try the following command
6 ssleay s_mult -echo -nbio -ssl -v
7 echo - sends any sent text back to the sender
8 nbio - turns on non-blocking IO
9 ssl  - accept SSL connections, default is normal text
10 v    - print lots
11         type Q<cr> to quit
12
13 In another window, run the following
14 ssleay s_client -pause </etc/termcap
15
16 The pause option puts in a 1 second pause in each read(2)/write(2) call
17 so the other end will have read()s fail.