home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
tcps.zip
/
Read.me
< prev
next >
Wrap
Text File
|
2002-06-07
|
1KB
|
27 lines
1. tcptst-org.exe -> Original module povided by the customer.
2. tcptst-org.cpp -> Source code used to build tcptst-org.exe.
( Please note that the above two files have been provided
by the customer and we have only renamed them.)
3. tcps.exe -> This exe displays a simple TCP server behaviour.
4. tcps.c -> Source code used to build tcps.exe.
5. tcptst-timerset.exe -> This exe has Sleep enabled in it just before
making the actual accept call.The sleeptime has been adjusted to
so that we always get to close the socket before accept.
6. tcptst-timernotset.exe -> This exe has Sleep disabled, so it is now
on the discretion kernel as to which call is executed first on both
threads i.e, SoClose in the main thread (Terminate routine) and
Accept in the second thread (ServerAcceptConn routine).
Both the executables above (5 & 6) issue accept only twice.There
is no indefinite looping for doing an accept.
7. tcptst-timer.c -> Source code for exe's 5 & 6 above.There is only a
single line of code change between these two exe's which commented
in line no. 125-127 of the code.
Error Code returned by above modules:
---------------------------------------
10004 --> SOCEINTR. Interrupted System Call.
10038 --> SOCENOTSOCK. Socket Operation on a non-socket.