Sockets
Archie Cobbs
archie at whistle.com
Thu Jul 30 19:37:03 PDT 1998
I was shocked and dismayed to find that Socket.setTcpNoDelay() was
not implemented... :-) so I tried to do something about it...
The patch below adds a bunch of missing stuff that's documented at
http://java.sun.com/products/jdk/1.2/docs/api/index.html
(specifically the java.net.SocketOptions stuff).
The only grey area for me was how to implement the SO_TIMEOUT option..
so I'm leaving that to more capable hands.
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
begin 664 patch.gz
M'XL(`($LP34"`^T<:5/;R/*S_2LZI"IEXU,V5V#)A at 1VPWL$*$RV-O5JRZ7(
M8RP0$B4))^P6__UUSXQDW1X90ZA:<OB0>GIZ>GKZE at _M$?NQ#9;YS=5=DWD=
M`S]V;.9W3BW=M/=U7[]P]>N!8UPQ__#ZQFH;U=V'_ZF>?1S`V+38-G2,J=>Y
M=D9\TBM]/&:=,M0TIU67^0@\->T+</'-,QT;M#;_6QV9XS&T#&C=0LN5%R%_
M::U6*_]N17O[=JO3W>QH7>CUM[L:_JL$$S4:#861?0VZO>U^=UM[6WW_'EJ]
MC>8&-/"UMP[OWU?AM6D;UNV(P2^7WIUGZ);5GKRK0A4ZJ]4&K,+@]N;&<7TV
M`H^C!^?&Q^5Z=+.#+^#YNF\:8.`U'[^XMX8/_U0;%0#3]N$2P7?";Q:;,FOV
MU1`W`>XE\A.!^W]_P2[A>&V.1VP, at Y/AX'C_PY??"!3@'[C4I_H0]V at XB(X:
MAG#-2F5P<H3?/_[WX+Q9":_#?1.1,ANW*(K\[.,?2L@%7!JYN)Z'_.#+X&!O
M?_],`7\`VDS-$-R)38)\0^Y5&[A3@#OUT66ZST"'D90'R=0VW>U48>J8(RX"
MVD:_V4,AT+9Z310/D at +ZR^^W0O)R1&LHD`X"RFMRRS_-&[@*_L3TFG!).S_5
MFA`;:.GVQ?#DVR4S_%68]NK5QM,0 at A)81(GN7M2K*(JM*E12^`_Q96\T<IGG
M(21^N-E)@G%DA[;/+IB[2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