[PATCH] MulticastSocket [gs]etTimeToLive implementation

Dalibor Topic robilad at yahoo.com
Mon Mar 18 06:18:56 PST 2002


Hi,

the appended patch implements getTimeToLive & setTimeToLive methods for 
java.net.MulticastSocket. The implementation just calls the getTTL & setTTL 
methods. The implementation of setTimeToLive additionally checks if the given 
time to live is within bounds specified in Java Class Libraries Second 
Edition Volume 1 Supplement book. If it is not, it throws an 
IllegalArgumentException, like JDK does.

Additionally, I deprecated the old forms (getTTL, setTTL), since they are 
marked as deprecated as of Java 1.2.

have fun,

Dalibor Topic
-------------- next part --------------
	* libraries/javalib/java/net/MulticastSocket.java:
	(getTimeToLive) new method.
	(getTTL) deprecated.
	(setTimeToLive) new method.
	(setTTL) deprecated.
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java.net.MulticastSocket-TimeToLive.patch
Type: text/x-diff
Size: 708 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20020318/18c3bc6b/attachment-0003.patch 


More information about the kaffe mailing list