You can subscribe to this list here.
2007 |
Jan
|
Feb
(4) |
Mar
(59) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <jlg...@us...> - 2007-03-21 12:39:26
|
Revision: 98 http://trivial.svn.sourceforge.net/trivial/?rev=98&view=rev Author: jlgeering Date: 2007-03-21 05:39:09 -0700 (Wed, 21 Mar 2007) Log Message: ----------- Listen on all interfaces: new JmDNS(address); -> new JmDNS(); Removed all the interface selection code. Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-21 12:33:38 UTC (rev 97) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-21 12:39:09 UTC (rev 98) @@ -1,7 +1,6 @@ package net.sf.trivial.easypaste.internal.pi.presence; import java.io.IOException; -import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Enumeration; import java.util.Vector; @@ -18,7 +17,7 @@ public PresenceServiceImpl(int port, String serviceName) throws IOException { super(port, serviceName); - this.jmdns = createJmDNS(); + this.jmdns = new JmDNS(); this.serviceBrowser = new ServiceBrowserImpl(jmdns,this); this.serviceRegistrer = new ServiceRegistrerImpl(jmdns); } @@ -35,37 +34,4 @@ public ServiceRegistrer getServiceRegistrer() { return serviceRegistrer; } - - private JmDNS createJmDNS() throws IOException { - InetAddress finalAddress = null; - System.out.println("Starting service on the following interfaces:"); - try { - Vector<NetworkInterface> possibleValues = new Vector<NetworkInterface>(); - - Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); - while (interfaces.hasMoreElements()) { - possibleValues.add(interfaces.nextElement()); - } - - for (NetworkInterface ni : possibleValues) { - Enumeration<InetAddress> e = ni.getInetAddresses(); - while (e.hasMoreElements()) { - InetAddress ia = e.nextElement(); - if (!ia.isLoopbackAddress() && !ia.getHostAddress().contains(":")) { - finalAddress = ia; - System.out.println("\t" + ni.getDisplayName() - + "\t" + ia.getHostName() - + " (" + ia.getHostAddress() + ")"); - - } - } - } - } - catch (Exception e) { - e.printStackTrace(); - System.exit(1); - } - return new JmDNS(finalAddress); - } - } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-21 12:33:43
|
Revision: 97 http://trivial.svn.sourceforge.net/trivial/?rev=97&view=rev Author: jlgeering Date: 2007-03-21 05:33:38 -0700 (Wed, 21 Mar 2007) Log Message: ----------- Pomme-Shift-O: Organize imports Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-21 12:32:45 UTC (rev 96) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-21 12:33:38 UTC (rev 97) @@ -1,7 +1,5 @@ package net.sf.trivial.easypaste.launcher; -import java.util.Properties; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-21 12:32:45
|
Revision: 96 http://trivial.svn.sourceforge.net/trivial/?rev=96&view=rev Author: jlgeering Date: 2007-03-21 05:32:45 -0700 (Wed, 21 Mar 2007) Log Message: ----------- JmDNS FIXING: all interfaces, temp hack. + other fixes Modified Paths: -------------- trunk/eclipse/bonjour/jmdns/src/javax/jmdns/JmDNS.java Modified: trunk/eclipse/bonjour/jmdns/src/javax/jmdns/JmDNS.java =================================================================== --- trunk/eclipse/bonjour/jmdns/src/javax/jmdns/JmDNS.java 2007-03-19 19:54:15 UTC (rev 95) +++ trunk/eclipse/bonjour/jmdns/src/javax/jmdns/JmDNS.java 2007-03-21 12:32:45 UTC (rev 96) @@ -171,6 +171,7 @@ try { InetAddress addr = InetAddress.getLocalHost(); + System.out.println(addr.getHostName()); init(addr.isLoopbackAddress() ? null : addr, addr.getHostName()); // [PJYF Oct 14 2004] Why do we disallow the loopback address? } catch (IOException e) @@ -204,12 +205,14 @@ private void init(InetAddress address, String name) throws IOException { // A host name with "." is illegal. so strip off everything and append .local. - int idx = name.indexOf("."); - if (idx > 0) - { - name = name.substring(0, idx); - } - name += ".local."; +// int idx = name.indexOf("."); +// if (idx > 0) +// { +// name = name.substring(0, idx); +// } +// name += ".local."; + name = name.replaceFirst("\\..*", ".local."); + // localHost to IP address binding localHost = new HostInfo(address, name); @@ -232,7 +235,7 @@ incomingListener = new Thread(new SocketListener(), "JmDNS.SocketListener"); // Bind to multicast socket - openMulticastSocket(localHost); + openMulticastSocket(); start(services.values()); } @@ -254,7 +257,8 @@ } } - private void openMulticastSocket(HostInfo hostInfo) throws IOException + // Removed HostInfo hostInfo (not used -> localhost) + private void openMulticastSocket() throws IOException { if (group == null) { @@ -265,9 +269,14 @@ this.closeMulticastSocket(); } socket = new MulticastSocket(DNSConstants.MDNS_PORT); - if ((hostInfo != null) && (localHost.getInterface() != null)) + // As far as I can tell, hostInfo always == localhost so: + // Either hostInfo != null && hostInfo.getInterface != null + // or the same with localHost. + if ((localHost != null) && (localHost.getInterface() != null)) { - socket.setNetworkInterface(hostInfo.getInterface()); + // NO! Listen on all interfaces. + // TODO this is a temp hack. +// socket.setNetworkInterface(localHost.getInterface()); } socket.setTimeToLive(255); socket.joinGroup(group); @@ -346,11 +355,12 @@ * Note: May not be the same as what started. The host name is subject to * negotiation. */ - public String getHostName() - { - return localHost.getName(); - } - + // Not used ! +// public String getHostName() +// { +// return localHost.getName(); +// } +// public HostInfo getLocalHost() { return localHost; @@ -2286,7 +2296,7 @@ // try { - openMulticastSocket(localHost); + openMulticastSocket(); start(oldServiceInfos); } catch (Exception exception) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fte...@us...> - 2007-03-19 21:00:47
|
Revision: 95 http://trivial.svn.sourceforge.net/trivial/?rev=95&view=rev Author: fterrier Date: 2007-03-19 12:54:15 -0700 (Mon, 19 Mar 2007) Log Message: ----------- compiled unix socket jni crap Added Paths: ----------- trunk/eclipse/bonjour/compiled-libs/ trunk/eclipse/bonjour/compiled-libs/libunix-java.so Added: trunk/eclipse/bonjour/compiled-libs/libunix-java.so =================================================================== (Binary files differ) Property changes on: trunk/eclipse/bonjour/compiled-libs/libunix-java.so ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-19 17:12:50
|
Revision: 94 http://trivial.svn.sourceforge.net/trivial/?rev=94&view=rev Author: jlgeering Date: 2007-03-19 10:12:46 -0700 (Mon, 19 Mar 2007) Log Message: ----------- dbus java impl and deps for communicating with avahi. Modified Paths: -------------- trunk/eclipse/bonjour/.classpath Added Paths: ----------- trunk/eclipse/bonjour/dbus-java-2.1/ trunk/eclipse/bonjour/dbus-java-2.1/AUTHORS trunk/eclipse/bonjour/dbus-java-2.1/COPYING trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.bat trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sgml trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sh trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.bat trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.sgml trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.sh trunk/eclipse/bonjour/dbus-java-2.1/DBusViewer.bat trunk/eclipse/bonjour/dbus-java-2.1/DBusViewer.sgml trunk/eclipse/bonjour/dbus-java-2.1/DBusViewer.sh trunk/eclipse/bonjour/dbus-java-2.1/INSTALL trunk/eclipse/bonjour/dbus-java-2.1/ListDBus.bat trunk/eclipse/bonjour/dbus-java-2.1/ListDBus.sgml trunk/eclipse/bonjour/dbus-java-2.1/ListDBus.sh trunk/eclipse/bonjour/dbus-java-2.1/Makefile trunk/eclipse/bonjour/dbus-java-2.1/README trunk/eclipse/bonjour/dbus-java-2.1/changelog trunk/eclipse/bonjour/dbus-java-2.1/compile.bat trunk/eclipse/bonjour/dbus-java-2.1/dbus-java.pdf trunk/eclipse/bonjour/dbus-java-2.1/dbus-java.tex trunk/eclipse/bonjour/dbus-java-2.1/src/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/DBus.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/AbstractConnection.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/ArrayFrob.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/BusAddress.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Container.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusAsyncReply.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusCallInfo.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusConnection.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusMap.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusMatchRule.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusSerializable.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusSigHandler.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DBusSignal.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/DirectConnection.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/EfficientMap.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/EfficientQueue.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Error.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/ExportedObject.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/InternalSignal.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Marshalling.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Message.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/MessageReader.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/MessageWriter.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/MethodCall.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/MethodReturn.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/MethodTuple.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/ObjectPath.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/ObjectTree.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Path.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Position.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/RemoteInvocationHandler.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/RemoteObject.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/SignalTuple.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Struct.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Transport.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Tuple.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/TypeSignature.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/UInt16.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/UInt32.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/UInt64.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/Variant.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/CreateInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/DBusDaemon.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/IterableNodeList.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/ListDBus.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/NodeListIterator.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/bin/StructStruct.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/DBusException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/DBusExecutionException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/FatalDBusException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/FatalException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/InternalMessageException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/MarshallingException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/MessageFormatException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/MessageProtocolVersionException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/MessageTypeException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/NonFatalException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/NotConnected.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/exceptions/UnknownTypeCodeException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/objecttest.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/ProfileStruct.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/Profiler.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/ProfilerInstance.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestException.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestNewInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestRemoteInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestRemoteInterface2.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestSerializable.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestSignalInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestStruct.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestStruct2.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TestTuple.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TwoPartInterface.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/TwoPartObject.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/cross_test_client.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/cross_test_server.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/profile.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/test.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/test_low_level.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/test_p2p_client.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/test_p2p_server.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/two_part_test_client.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/test/two_part_test_server.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/types/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/types/DBusListType.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/types/DBusMapType.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/types/DBusStructType.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/ trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/DBusEntry.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/DBusTableModel.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/DBusViewer.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/FileSaver.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/IntrospectAction.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/SaveAllAction.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/SaveFileAction.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/StringStreamFactory.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/TabbedSaveAction.java trunk/eclipse/bonjour/dbus-java-2.1/src/org/freedesktop/dbus/viewer/TextFile.java trunk/eclipse/bonjour/dbus-java-2.1/tmp-session.conf trunk/eclipse/bonjour/libmatthew-java-0.3/ trunk/eclipse/bonjour/libmatthew-java-0.3/COPYING trunk/eclipse/bonjour/libmatthew-java-0.3/INSTALL trunk/eclipse/bonjour/libmatthew-java-0.3/Makefile trunk/eclipse/bonjour/libmatthew-java-0.3/README trunk/eclipse/bonjour/libmatthew-java-0.3/cgi-java.c trunk/eclipse/bonjour/libmatthew-java-0.3/changelog trunk/eclipse/bonjour/libmatthew-java-0.3/src/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CGI.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CGIErrorHandler.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CGIHeaderSentException.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CGIInvalidContentFormatException.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CGITools.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/CheckBox.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/DefaultErrorHandler.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/DisplayField.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/DropDown.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/Field.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/HTMLForm.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/HiddenField.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/MultipleDropDown.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/NewTable.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/Password.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/Radio.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/SubmitButton.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/TextArea.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/TextField.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/cgi/testcgi.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/debug/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/debug/Debug.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/debug/Debug.jpp trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/DOMPrinter.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/ExecInputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/ExecOutputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/InOutCopier.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/TeeInputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/TeeOutputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/test.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/test2.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/io/test3.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/NotConnectedException.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/USInputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/USOutputStream.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/UnixIOException.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/UnixServerSocket.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/UnixSocket.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/UnixSocketAddress.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/java-unix.h trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/testclient.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/unix/testserver.java trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/utils/ trunk/eclipse/bonjour/libmatthew-java-0.3/src/cx/ath/matthew/utils/Hexdump.java trunk/eclipse/bonjour/libmatthew-java-0.3/unix-java.c Modified: trunk/eclipse/bonjour/.classpath =================================================================== --- trunk/eclipse/bonjour/.classpath 2007-03-09 17:29:30 UTC (rev 93) +++ trunk/eclipse/bonjour/.classpath 2007-03-19 17:12:46 UTC (rev 94) @@ -3,6 +3,8 @@ <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="jmdns/src"/> <classpathentry kind="src" path="dnsjava-2.0.3/src"/> + <classpathentry kind="src" path="dbus-java-2.1/src"/> + <classpathentry kind="src" path="libmatthew-java-0.3/src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry exported="true" kind="lib" path="jmdns/lib/jmdns.jar"/> <classpathentry exported="true" kind="lib" path="apple/dns_sd.jar"/> Added: trunk/eclipse/bonjour/dbus-java-2.1/AUTHORS =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/AUTHORS (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/AUTHORS 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,18 @@ +The D-Bus Java implementation was written by: + +Matthew Johnson <dbus -at matthew -dot- ath -dot- cx> + +Bug fixes and other suggestions from: + +Remi Emonet <remi.emonet -at- inrialpes -dot- fr> +Simon McVittie <simon -dot- mcvittie -at- collabora -dot- co -dot- uk> +Dick Hollenbeck <dick -at- softplc -dot- com> +Joshua Nichols <nichoj -at- gentoo -dot- org> +Ralf Kistner <ralf.kistner -at- gmail -dot- com> +Henrik Petander <henrik -dot- petander -at- iki -dot- fi> +Luigi Paioro <luigi -at- lambrate -dot- it> +Roberto Francisco Arroyo Moreno <robfram -at- ugr -dot- es> + +The included Viewer application was written by: + +Peter Cox <petercox -at- gawab -dot- com> Added: trunk/eclipse/bonjour/dbus-java-2.1/COPYING =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/COPYING (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/COPYING 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,540 @@ +The D-Bus Java implementation is licensed to you under your choice of the +Academic Free License version 2.1, or the GNU General Public License version 2. +Both licenses are included here. Each source code file is marked with the +proper copyright information. + +The Academic Free License +v. 2.1 + +This Academic Free License (the "License") applies to any original work of +authorship (the "Original Work") whose owner (the "Licensor") has placed the +following notice immediately following the copyright notice for the Original +Work: + +Licensed under the Academic Free License version 2.1 + +1) Grant of Copyright License. Licensor hereby grants You a world-wide, +royalty-free, non-exclusive, perpetual, sublicenseable license to do the +following: + +a) to reproduce the Original Work in copies; + +b) to prepare derivative works ("Derivative Works") based upon the Original +Work; + +c) to distribute copies of the Original Work and Derivative Works to the +public; + +d) to perform the Original Work publicly; and + +e) to display the Original Work publicly. + +2) Grant of Patent License. Licensor hereby grants You a world-wide, +royalty-free, non-exclusive, perpetual, sublicenseable license, under patent +claims owned or controlled by the Licensor that are embodied in the Original +Work as furnished by the Licensor, to make, use, sell and offer for sale the +Original Work and Derivative Works. + +3) Grant of Source Code License. The term "Source Code" means the preferred +form of the Original Work for making modifications to it and all available +documentation describing how to modify the Original Work. Licensor hereby +agrees to provide a machine-readable copy of the Source Code of the Original +Work along with each copy of the Original Work that Licensor distributes. +Licensor reserves the right to satisfy this obligation by placing a +machine-readable copy of the Source Code in an information repository +reasonably calculated to permit inexpensive and convenient access by You for as +long as Licensor continues to distribute the Original Work, and by publishing +the address of that information repository in a notice immediately following +the copyright notice that applies to the Original Work. + +4) Exclusions From License Grant. Neither the names of Licensor, nor the names +of any contributors to the Original Work, nor any of their trademarks or +service marks, may be used to endorse or promote products derived from this +Original Work without express prior written permission of the Licensor. Nothing +in this License shall be deemed to grant any rights to trademarks, copyrights, +patents, trade secrets or any other intellectual property of Licensor except as +expressly stated herein. No patent license is granted to make, use, sell or +offer to sell embodiments of any patent claims other than the licensed claims +defined in Section 2. No right is granted to the trademarks of Licensor even if +such marks are included in the Original Work. Nothing in this License shall be +interpreted to prohibit Licensor from licensing under different terms from this +License any Original Work that Licensor otherwise would have a right to +license. + +5) This section intentionally omitted. + +6) Attribution Rights. You must retain, in the Source Code of any Derivative +Works that You create, all copyright, patent or trademark notices from the +Source Code of the Original Work, as well as any notices of licensing and any +descriptive text identified therein as an "Attribution Notice." You must cause +the Source Code for any Derivative Works that You create to carry a prominent +Attribution Notice reasonably calculated to inform recipients that You have +modified the Original Work. + +7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that +the copyright in and to the Original Work and the patent rights granted herein +by Licensor are owned by the Licensor or are sublicensed to You under the terms +of this License with the permission of the contributor(s) of those copyrights +and patent rights. Except as expressly stated in the immediately proceeding +sentence, the Original Work is provided under this License on an "AS IS" BASIS +and WITHOUT WARRANTY, either express or implied, including, without limitation, +the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. +This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No +license to Original Work is granted hereunder except under this disclaimer. + +8) Limitation of Liability. Under no circumstances and under no legal theory, +whether in tort (including negligence), contract, or otherwise, shall the +Licensor be liable to any person for any direct, indirect, special, incidental, +or consequential damages of any character arising as a result of this License +or the use of the Original Work including, without limitation, damages for loss +of goodwill, work stoppage, computer failure or malfunction, or any and all +other commercial damages or losses. This limitation of liability shall not +apply to liability for death or personal injury resulting from Licensor's +negligence to the extent applicable law prohibits such limitation. Some +jurisdictions do not allow the exclusion or limitation of incidental or +consequential damages, so this exclusion and limitation may not apply to You. + +9) Acceptance and Termination. If You distribute copies of the Original Work or +a Derivative Work, You must make a reasonable effort under the circumstances to +obtain the express assent of recipients to the terms of this License. Nothing +else but this License (or another written agreement between Licensor and You) +grants You permission to create Derivative Works based upon the Original Work +or to exercise any of the rights granted in Section 1 herein, and any attempt +to do so except under the terms of this License (or another written agreement +between Licensor and You) is expressly prohibited by U.S. copyright law, the +equivalent laws of other countries, and by international treaty. Therefore, by +exercising any of the rights granted to You in Section 1 herein, You indicate +Your acceptance of this License and all of its terms and conditions. + +10) Termination for Patent Action. This License shall terminate automatically +and You may no longer exercise any of the rights granted to You by this License +as of the date You commence an action, including a cross-claim or counterclaim, +against Licensor or any licensee alleging that the Original Work infringes a +patent. This termination provision shall not apply for an action alleging +patent infringement by combinations of the Original Work with other software or +hardware. + +11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this +License may be brought only in the courts of a jurisdiction wherein the +Licensor resides or in which Licensor conducts its primary business, and under +the laws of that jurisdiction excluding its conflict-of-law provisions. The +application of the United Nations Convention on Contracts for the International +Sale of Goods is expressly excluded. Any use of the Original Work outside the +scope of this License or after its termination shall be subject to the +requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 et seq., +the equivalent laws of other countries, and international treaty. This section +shall survive the termination of this License. + +12) Attorneys Fees. In any action to enforce the terms of this License or +seeking damages relating thereto, the prevailing party shall be entitled to +recover its costs and expenses, including, without limitation, reasonable +attorneys' fees and costs incurred in connection with such action, including +any appeal of such action. This section shall survive the termination of this +License. + +13) Miscellaneous. This License represents the complete agreement concerning +the subject matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent necessary to +make it enforceable. + +14) Definition of "You" in This License. "You" throughout this License, whether +in upper or lower case, means an individual or a legal entity exercising rights +under, and complying with all of the terms of, this License. For legal +entities, "You" includes any entity that controls, is controlled by, or is +under common control with you. For purposes of this definition, "control" means +(i) the power, direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (ii) ownership of fifty percent +(50%) or more of the outstanding shares, or (iii) beneficial ownership of such +entity. + +15) Right to Use. You may use the Original Work in all ways not otherwise +restricted or conditioned by this License or by law, and Licensor promises not +to interfere with or be responsible for such uses by You. + +This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved. +Permission is hereby granted to copy and distribute this license without +modification. This license may not be modified without the express written +permission of its copyright owner. + + +-- +END OF ACADEMIC FREE LICENSE. The following is intended to describe the +essential differences between the Academic Free License (AFL) version 1.0 and +other open source licenses: + +The Academic Free License is similar to the BSD, MIT, UoI/NCSA and Apache +licenses in many respects but it is intended to solve a few problems with those +licenses. + +* The AFL is written so as to make it clear what software is being +licensed (by the inclusion of a statement following the copyright notice in the +software). This way, the license functions better than a template license. The +BSD, MIT and UoI/NCSA licenses apply to unidentified software. + +* The AFL contains a complete copyright grant to the software. The BSD +and Apache licenses are vague and incomplete in that respect. + +* The AFL contains a complete patent grant to the software. The BSD, MIT, +UoI/NCSA and Apache licenses rely on an implied patent license and contain no +explicit patent grant. + +* The AFL makes it clear that no trademark rights are granted to the +licensor's trademarks. The Apache license contains such a provision, but the +BSD, MIT and UoI/NCSA licenses do not. + +* The AFL includes the warranty by the licensor that it either owns the +copyright or that it is distributing the software under a license. None of the +other licenses contain that warranty. All other warranties are disclaimed, as +is the case for the other licenses. + +* The AFL is itself copyrighted (with the right granted to copy and distribute +without modification). This ensures that the owner of the copyright to the +license will control changes. The Apache license contains a copyright notice, +but the BSD, MIT and UoI/NCSA licenses do not. + +-- +START OF GNU GENERAL PUBLIC LICENSE +-- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Added: trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.bat =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.bat (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.bat 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,10 @@ +@echo off +setlocal +set debug=%DEBUG% +set version=%VERSION% +set jarpath=%WINJARPATH% +set javaunixjarpath=%WINUNIXJARPATH% + +java -DVersion=%version% -cp %javaunixjarpath%debug-%debug%.jar;%javaunixjarpath%hexdump.jar;%jarpath%dbus.jar;%jarpath%dbus-bin.jar org.freedesktop.dbus.bin.CreateInterface %* + +endlocal Added: trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sgml =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sgml (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sgml 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,182 @@ +<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ + +<!-- Process this file with docbook-to-man to generate an nroff manual + page: `docbook-to-man manpage.sgml > manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + <!-- Fill in your name for FIRSTNAME and SURNAME. --> + <!ENTITY dhfirstname "<firstname>Matthew</firstname>"> + <!ENTITY dhsurname "<surname>Johnson</surname>"> + <!-- Please adjust the date whenever revising the manpage. --> + <!ENTITY dhdate "<date>January 10, 2006</date>"> + <!-- SECTION should be 1-8, maybe w/ subsection other parameters are + allowed: see man(7), man(1). --> + <!ENTITY dhsection "<manvolnum>1</manvolnum>"> + <!ENTITY dhemail "<email><de...@ma...></email>"> + <!ENTITY dhusername "Matthew Johnson"> + <!ENTITY dhucpackage "<refentrytitle>DBUS-JAVA</refentrytitle>"> + <!ENTITY dhpackage "CreateInterface"> + + <!ENTITY debian "<productname>Debian</productname>"> + <!ENTITY gnu "<acronym>GNU</acronym>"> + <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> +]> + +<refentry> + <refentryinfo> + <address> + &dhemail; + </address> + <author> + &dhfirstname; + &dhsurname; + </author> + <copyright> + <year>2006</year> + <holder>&dhusername;</holder> + </copyright> + &dhdate; + </refentryinfo> + <refmeta> + &dhucpackage; + + &dhsection; + </refmeta> + <refnamediv> + <refname>&dhpackage;</refname> + + <refpurpose>Create a Java Interface definition from DBus + introspection data.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <cmdsynopsis> + <command>&dhpackage;</command> + <arg><option><replaceable>introspection.xml</replaceable></option></arg> + <arg><option><replaceable>busname</replaceable> <replaceable>objectname</replaceable></option></arg> + <arg><option>-y </option></arg> + <arg><option>--system </option></arg> + <arg><option>-s </option></arg> + <arg><option>--session </option></arg> + <arg><option>-f </option></arg> + <arg><option>--create-files </option></arg> + <arg><option>-h </option></arg> + <arg><option>--help</option></arg> + + </cmdsynopsis> + </refsynopsisdiv> + <refsect1> + <title>DESCRIPTION</title> + + <para>This manual page documents briefly the + <command>&dhpackage;</command> command.</para> + + <para><command>&dhpackage;</command> takes DBus introspection data, + either as an XML file or by calling the Introspect() method on the Bus, + and converts it into a Java interface file. This is either written + to the standard output or to the correct file structure for the + Java packages. + </para> + + + </refsect1> + <refsect1> + <title>OPTIONS</title> + + <para>These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. + </para> + + <variablelist> + <varlistentry> + <term><option>-s</option> + <option>--session</option> + </term> + <listitem> + <para>Use the Session Bus to query introspection data + (This is the Default)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-y</option> + <option>--system</option> + </term> + <listitem> + <para>Use the System Bus to query introspection data + (Default is Session)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-f</option> + <option>--create-files</option> + </term> + <listitem> + <para>Writes introspection data into files rather than to stdout. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>--no-ignore-builtin</option> + </term> + <listitem> + <para>Do not ignore builtin (org.freedesktop.DBus) + interfaces while parsing introspection data</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-h</option> + <option>--help</option> + </term> + <listitem> + <para>Show summary of options.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + <refsect1> + <title>AUTHOR</title> + + <para>This manual page was written by &dhusername; &dhemail;. Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 as + published by the Free Software Foundation. + </para> + <para> + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + </para> + + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:2 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:nil +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +--> + + Added: trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sh =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sh (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/CreateInterface.sh 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,10 @@ +#!/bin/sh -- + +JAVA=%JAVA% +DEBUG=%DEBUG% +VERSION=%VERSION% +JARPATH=%JARPATH% +JAVAUNIXLIBPATH=%JAVAUNIXLIBPATH% +JAVAUNIXJARPATH=%JAVAUNIXJARPATH% + +exec $JAVA -DPid=$$ -DVersion=$VERSION -Djava.library.path=$JAVAUNIXLIBPATH -cp $JAVAUNIXJARPATH/unix.jar:$JAVAUNIXJARPATH/debug-$DEBUG.jar:$JAVAUNIXJARPATH/hexdump.jar:$JARPATH/dbus.jar:$JARPATH/dbus-bin.jar org.freedesktop.dbus.bin.CreateInterface "$@" Added: trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.bat =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.bat (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.bat 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,10 @@ +@echo off +setlocal +set debug=%DEBUG% +set version=%VERSION% +set jarpath=%WINJARPATH% +set javaunixjarpath=%WINUNIXJARPATH% + +java -DVersion=%version% -cp %javaunixjarpath%debug-%debug%.jar;%javaunixjarpath%hexdump.jar;%jarpath%dbus.jar;%jarpath%dbus-bin.jar org.freedesktop.dbus.bin.DBusDaemon %* + +endlocal Added: trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.sgml =================================================================== --- trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.sgml (rev 0) +++ trunk/eclipse/bonjour/dbus-java-2.1/DBusDaemon.sgml 2007-03-19 17:12:46 UTC (rev 94) @@ -0,0 +1,212 @@ +<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ + +<!-- Process this file with docbook-to-man to generate an nroff manual + page: `docbook-to-man manpage.sgml > manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + <!-- Fill in your name for FIRSTNAME and SURNAME. --> + <!ENTITY dhfirstname "<firstname>Matthew</firstname>"> + <!ENTITY dhsurname "<surname>Johnson</surname>"> + <!-- Please adjust the date whenever revising the manpage. --> + <!ENTITY dhdate "<date>January 10, 2006</date>"> + <!-- SECTION should be 1-8, maybe w/ subsection other parameters are + allowed: see man(7), man(1). --> + <!ENTITY dhsection "<manvolnum>1</manvolnum>"> + <!ENTITY dhemail "<email><de...@ma...></email>"> + <!ENTITY dhusername "Matthew Johnson"> + <!ENTITY dhucpackage "<refentrytitle>DBUS-JAVA</refentrytitle>"> + <!ENTITY dhpackage "DBusDaemon"> + + <!ENTITY debian "<productname>Debian</productname>"> + <!ENTITY gnu "<acronym>GNU</acronym>"> + <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> +]> + +<refentry> + <refentryinfo> + <address> + &dhemail; + </address> + <author> + &dhfirstname; + &dhsurname; + </author> + <copyright> + <year>2006</year> + <holder>&dhusername;</holder> + </copyright> + &dhdate; + </refentryinfo> + <refmeta> + &dhucpackage; + + &dhsection; + </refmeta> + <refnamediv> + <refname>&dhpackage;</refname> + + <refpurpose>Runs a D-Bus Daemon</refpurpose> + </refnamediv> + <refsynopsisdiv> + <cmdsynopsis> + <command>&dhpackage;</command> + <arg><option>--version</option></arg> + <arg><option>-v</option></arg> + <arg><option>--help</option></arg> + <arg><option>-h</option></arg> + <arg><option>--print-address</option></arg> + <arg><option>-r</option></arg> + <arg><option>--unix</option></arg> + <arg><option>-u</option></arg> + <arg><option>--tcp</option></arg> + <arg><option>-t</option></arg> + <arg><option>--listen</option> <replaceable>address</replaceable></arg> + <arg><option>-l</option> <replaceable>address</replaceable></arg> + <arg><option>--addressfile</option> <replaceable>file</replaceable></arg> + <arg><option>-a</option> <replaceable>file</replaceable></arg> + <arg><option>--pidfile</option> <replaceable>file</replaceable></arg> + <arg><option>-p</option> <replaceable>file</replaceable></arg> + + </cmdsynopsis> + </refsynopsisdiv> + <refsect1> + <title>DESCRIPTION</title> + + <para>This manual page documents briefly the + <command>&dhpackage;</command> command.</para> + + <para><command>&dhpackage;</command> provides a D-Bus daemon for applications to communicate. + </para> + + + </refsect1> + <refsect1> + <title>OPTIONS</title> + + <para>These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. + </para> + + <variablelist> + <varlistentry> + <term> + <option>-v</option> + <option>--version</option> + </term> + <listitem> + <para>Print the version</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-h</option> + <option>--help</option> + </term> + <listitem> + <para>Print the syntax</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-r</option> + <option>--print-address</option> + </term> + <listitem> + <para>Print the address</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-u</option> + <option>--unix</option> + </term> + <listitem> + <para>Generate random Unix Socket address</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-t</option> + <option>--tcp</option> + </term> + <listitem> + <para>Generate random local TCP address</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-l</option> <replaceable>address</replaceable> + <option>--listen</option> <replaceable>address</replaceable> + </term> + <listitem> + <para>Listen on the specified address</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-a</option> <replaceable>file</replaceable> + <option>--addressfile</option> <replaceable>file</replaceable> + </term> + <listitem> + <para>Print address to specified file</para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <option>-p</option> <replacea... [truncated message content] |
From: <jlg...@us...> - 2007-03-09 17:29:30
|
Revision: 93 http://trivial.svn.sourceforge.net/trivial/?rev=93&view=rev Author: jlgeering Date: 2007-03-09 09:29:30 -0800 (Fri, 09 Mar 2007) Log Message: ----------- restored jmdns sources that tuuuuut deleted. Added Paths: ----------- trunk/eclipse/bonjour/jmdns/src/com/ trunk/eclipse/bonjour/jmdns/src/javax/ Copied: trunk/eclipse/bonjour/jmdns/src/com (from rev 71, trunk/eclipse/bonjour/jmdns/src/com) Copied: trunk/eclipse/bonjour/jmdns/src/javax (from rev 71, trunk/eclipse/bonjour/jmdns/src/javax) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-08 13:06:37
|
Revision: 92 http://trivial.svn.sourceforge.net/trivial/?rev=92&view=rev Author: jlgeering Date: 2007-03-08 05:06:34 -0800 (Thu, 08 Mar 2007) Log Message: ----------- Better mDNS debug. Modified Paths: -------------- trunk/eclipse/bonjour/src/MCListen.java Modified: trunk/eclipse/bonjour/src/MCListen.java =================================================================== --- trunk/eclipse/bonjour/src/MCListen.java 2007-03-07 16:12:24 UTC (rev 91) +++ trunk/eclipse/bonjour/src/MCListen.java 2007-03-08 13:06:34 UTC (rev 92) @@ -6,7 +6,9 @@ import java.net.MulticastSocket; import java.net.UnknownHostException; +import org.xbill.DNS.Flags; import org.xbill.DNS.Message; +import org.xbill.DNS.Section; public class MCListen { @@ -19,14 +21,51 @@ group = InetAddress.getByName("224.0.0.251"); MulticastSocket s = new MulticastSocket(5353); s.joinGroup(group); -// System.out.println(s.getNetworkInterface().getName()); byte[] buf = new byte[60000]; DatagramPacket recv = new DatagramPacket(buf, buf.length); while (true) { s.receive(recv); Message m = new Message(recv.getData()); -// DNSIncoming truc = new DNSIncoming(recv); - System.out.println(m); + String from = recv.getAddress().getHostAddress() + ":" + recv.getPort(); + // 20.11 RCODE (Response Code) + // In both multicast query and multicast response messages, the Response + // Code MUST be zero on transmission. Multicast DNS messages received + // with non-zero Response Codes MUST be silently ignored. + if (m.getHeader().getRcode() != 0) { + continue; + } + // 20.3 OPCODE + // In both multicast query and multicast response messages, MUST be zero + // (only standard queries are currently supported over multicast, unless + // other queries are allowed by future IETF Standards Action). + if (m.getHeader().getOpcode() != 0) { + System.err.println("OPCODE must be zero."); + continue; + } + // 20.2 QR (Query/Response) Bit + // In query messages, MUST be zero. + // In response messages, MUST be one. + if (m.getHeader().getFlag(Flags.QR)) { + // Response + System.out.println("RESPONSE from " + from); + // Multicast DNS Responses MUST NOT contain any questions in the + // Question Section. Any questions in the Question Section of a received + // Multicast DNS Response MUST be silently ignored. Multicast DNS + // Queriers receiving Multicast DNS Responses do not care what question + // elicited the response; they care only that the information in the + // response is true and accurate. + if (m.getSectionArray(Section.QUESTION).length > 0) { + // Only for debugging: + System.err.println("Response contains questions !"); + } + System.out.println(m.sectionToString(Section.ANSWER)); + } + else { + // Query + System.out.println("QUERY from " + from); + System.out.println(m.sectionToString(Section.QUESTION)); + System.out.println(m.sectionToString(Section.ANSWER)); + } System.out.println("----------------------------------------------------------------------------------------------------------------------------------------------------------"); recv.setLength(buf.length); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 16:12:28
|
Revision: 91 http://trivial.svn.sourceforge.net/trivial/?rev=91&view=rev Author: jlgeering Date: 2007-03-07 08:12:24 -0800 (Wed, 07 Mar 2007) Log Message: ----------- mDNS debug utility. Modified Paths: -------------- trunk/eclipse/bonjour/.classpath Added Paths: ----------- trunk/eclipse/bonjour/src/MCListen.java Modified: trunk/eclipse/bonjour/.classpath =================================================================== --- trunk/eclipse/bonjour/.classpath 2007-03-07 16:09:54 UTC (rev 90) +++ trunk/eclipse/bonjour/.classpath 2007-03-07 16:12:24 UTC (rev 91) @@ -2,6 +2,7 @@ <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="jmdns/src"/> + <classpathentry kind="src" path="dnsjava-2.0.3/src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry exported="true" kind="lib" path="jmdns/lib/jmdns.jar"/> <classpathentry exported="true" kind="lib" path="apple/dns_sd.jar"/> Added: trunk/eclipse/bonjour/src/MCListen.java =================================================================== --- trunk/eclipse/bonjour/src/MCListen.java (rev 0) +++ trunk/eclipse/bonjour/src/MCListen.java 2007-03-07 16:12:24 UTC (rev 91) @@ -0,0 +1,42 @@ + + +import java.io.IOException; +import java.net.DatagramPacket; +import java.net.InetAddress; +import java.net.MulticastSocket; +import java.net.UnknownHostException; + +import org.xbill.DNS.Message; + +public class MCListen { + + /** + * @param args + */ + public static void main(String[] args) { + InetAddress group; + try { + group = InetAddress.getByName("224.0.0.251"); + MulticastSocket s = new MulticastSocket(5353); + s.joinGroup(group); +// System.out.println(s.getNetworkInterface().getName()); + byte[] buf = new byte[60000]; + DatagramPacket recv = new DatagramPacket(buf, buf.length); + while (true) { + s.receive(recv); + Message m = new Message(recv.getData()); +// DNSIncoming truc = new DNSIncoming(recv); + System.out.println(m); + System.out.println("----------------------------------------------------------------------------------------------------------------------------------------------------------"); + recv.setLength(buf.length); + } + } catch (UnknownHostException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 16:09:57
|
Revision: 90 http://trivial.svn.sourceforge.net/trivial/?rev=90&view=rev Author: jlgeering Date: 2007-03-07 08:09:54 -0800 (Wed, 07 Mar 2007) Log Message: ----------- moved test dnsjava test code Added Paths: ----------- trunk/eclipse/bonjour/dnsjava-2.0.3/tests/ Removed Paths: ------------- trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/ Copied: trunk/eclipse/bonjour/dnsjava-2.0.3/tests (from rev 89, trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 16:08:17
|
Revision: 89 http://trivial.svn.sourceforge.net/trivial/?rev=89&view=rev Author: jlgeering Date: 2007-03-07 08:08:15 -0800 (Wed, 07 Mar 2007) Log Message: ----------- importing dnsjava Added Paths: ----------- trunk/eclipse/bonjour/dnsjava-2.0.3/ trunk/eclipse/bonjour/dnsjava-2.0.3/Changelog trunk/eclipse/bonjour/dnsjava-2.0.3/Makefile trunk/eclipse/bonjour/dnsjava-2.0.3/README trunk/eclipse/bonjour/dnsjava-2.0.3/USAGE trunk/eclipse/bonjour/dnsjava-2.0.3/build.xml trunk/eclipse/bonjour/dnsjava-2.0.3/doc/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/allclasses-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/allclasses-noframe.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/constant-values.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/deprecated-list.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/help-doc.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/index-all.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/index.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/A6Record.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/AAAARecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/AFSDBRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/APLRecord.Element.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/APLRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ARecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Address.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/CERTRecord.CertificateType.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/CERTRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/CNAMERecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Cache.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Compression.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Credibility.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DClass.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNAMERecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSInput.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSKEYRecord.Flags.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSKEYRecord.Protocol.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSKEYRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSOutput.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSSEC.Algorithm.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DNSSEC.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/DSRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ExtendedFlags.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ExtendedResolver.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Flags.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/GPOSRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Generator.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/HINFORecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Header.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/IPSECKEYRecord.Algorithm.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/IPSECKEYRecord.Gateway.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/IPSECKEYRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ISDNRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/InvalidDClassException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/InvalidTTLException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/InvalidTypeException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/KEYRecord.Flags.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/KEYRecord.Protocol.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/KEYRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/KXRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/LOCRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Lookup.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MBRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MDRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MFRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MGRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MINFORecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MRRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/MXRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Master.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Message.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NAPTRRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NSAPRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NSAP_PTRRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NSECRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NSRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NULLRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NXTRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Name.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/NameTooLongException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/OPTRecord.Option.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/OPTRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Opcode.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Options.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/PTRRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/PXRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/RPRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/RRSIGRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/RRset.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/RTRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Rcode.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Record.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/RelativeNameException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Resolver.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ResolverConfig.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ResolverListener.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ReverseMap.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SIGRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SOARecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SPFRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SRVRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SSHFPRecord.Algorithm.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SSHFPRecord.Digest.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SSHFPRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Section.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Serial.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SetResponse.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/SimpleResolver.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TKEYRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TSIG.StreamVerifier.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TSIG.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TSIGRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TTL.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TXTRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/TextParseException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Tokenizer.Token.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Tokenizer.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Type.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/UNKRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Update.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Verifier.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/WKSRecord.Protocol.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/WKSRecord.Service.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/WKSRecord.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/WireParseException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/X25Record.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/Zone.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ZoneTransferException.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ZoneTransferIn.Delta.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/ZoneTransferIn.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/package-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/package-summary.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/package-tree.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/CERTConverter.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/DNSSECVerifier.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/DSASignature.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/KEYConverter.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/SIG0Signer.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/package-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/package-summary.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/security/package-tree.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/DNSJavaNameService.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/package-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/package-summary.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/spi/package-tree.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/HMAC.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/base16.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/base64.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/hexdump.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/package-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/package-summary.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/org/xbill/DNS/utils/package-tree.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/overview-frame.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/overview-summary.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/overview-tree.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/package-list trunk/eclipse/bonjour/dnsjava-2.0.3/doc/packages.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/resources/ trunk/eclipse/bonjour/dnsjava-2.0.3/doc/resources/inherit.gif trunk/eclipse/bonjour/dnsjava-2.0.3/doc/serialized-form.html trunk/eclipse/bonjour/dnsjava-2.0.3/doc/stylesheet.css trunk/eclipse/bonjour/dnsjava-2.0.3/examples.html trunk/eclipse/bonjour/dnsjava-2.0.3/src/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/dig.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/jnamed.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/lookup.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/A6Record.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/AAAARecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/AFSDBRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/APLRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ARecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Address.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/CERTRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/CNAMERecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Cache.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Client.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Compression.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Credibility.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DClass.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DNAMERecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DNSInput.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DNSKEYRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DNSOutput.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DNSSEC.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/DSRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/EmptyRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ExtendedFlags.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ExtendedResolver.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Flags.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/FormattedTime.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/GPOSRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Generator.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/HINFORecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Header.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/IPSECKEYRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ISDNRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/InvalidDClassException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/InvalidTTLException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/InvalidTypeException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/KEYBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/KEYRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/KXRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/LOCRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Lookup.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MBRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MDRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MFRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MGRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MINFORecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MRRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/MXRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Master.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Message.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Mnemonic.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NAPTRRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NSAPRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NSAP_PTRRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NSECRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NSRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NULLRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NXTRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Name.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/NameTooLongException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/OPTRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Opcode.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Options.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/PTRRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/PXRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/RPRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/RRSIGRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/RRset.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/RTRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Rcode.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Record.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/RelativeNameException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ResolveThread.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Resolver.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ResolverConfig.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ResolverListener.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ReverseMap.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SIGBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SIGRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SOARecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SPFRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SRVRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SSHFPRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Section.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Serial.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SetResponse.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SimpleResolver.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SingleCompressedNameBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/SingleNameBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TCPClient.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TKEYRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TSIG.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TSIGRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TTL.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TXTBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TXTRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/TextParseException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Tokenizer.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Type.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/U16NameBase.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/UDPClient.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/UNKRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Update.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Verifier.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/WKSRecord.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/WireParseException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/X25Record.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/Zone.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ZoneTransferException.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/ZoneTransferIn.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/CERTConverter.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/DHPubKey.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/DNSSECVerifier.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/DSAPubKey.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/DSASignature.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/KEYConverter.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/RSAPubKey.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/security/SIG0Signer.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/spi/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/spi/DNSJavaNameService.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/spi/services/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/spi/services/sun.net.spi.nameservice.NameServiceDescriptor trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/tests/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/tests/primary.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/tests/xfrin.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/utils/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/utils/HMAC.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/utils/base16.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/utils/base64.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/utils/hexdump.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/windows/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/windows/DNSServer.properties trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/windows/DNSServer_de.properties trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/windows/DNSServer_fr.properties trunk/eclipse/bonjour/dnsjava-2.0.3/src/org/xbill/DNS/windows/DNSServer_pl.properties trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/A6RecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/AAAARecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/AFSDBRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/APLRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/ARecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/AddressTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/CNAMERecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/CompressionTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DClassTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DNAMERecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DNSInputTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DNSKEYRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DNSOutputTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/DSRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/EmptyRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/ExceptionTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/ExtendedFlagsTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/FlagsTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/FormattedTimeTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/GPOSRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/HINFORecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/HeaderTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/KEYBaseTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/KEYRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/KXRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MBRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MDRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MFRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MGRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MRRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MXRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MessageTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/MnemonicTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/NSAP_PTRRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/NSRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/NameTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/OpcodeTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/OptionsTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/RRsetTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/RTRecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/RcodeTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/RecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/ReverseMapTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SOARecordTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SectionTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SerialTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SetResponseTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SingleCompressedNameBaseTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/SingleNameBaseTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/TTLTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/TokenizerTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/TypeTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/U16NameBaseTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/utils/ trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/utils/HMACTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/utils/base16Test.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/utils/base64Test.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/tests/org/xbill/DNS/utils/hexdumpTest.java trunk/eclipse/bonjour/dnsjava-2.0.3/src/update.java Added: trunk/eclipse/bonjour/dnsjava-2.0.3/Changelog =================================================================== --- trunk/eclipse/bonjour/dnsjava-2.0.3/Changelog (rev 0) +++ trunk/eclipse/bonjour/dnsjava-2.0.3/Changelog 2007-03-07 16:08:15 UTC (rev 89) @@ -0,0 +1,1307 @@ +11/28/2006 + - 2.0.3 released + +11/27/2006 + - The Zone.fromXFR() method should be able to create zones + from AXFR-style IXFR responses. + (Bill Kuker <bk...@us...>) + +10/25/2006 + - Make the routines that convert between the DNS and standard Java + representations of DSA signatures public. + (suggested by Klaus Malorny <Kla...@kn...>) + +8/3/2006 + - Add a TSIG constructor that takes an algorithm as a String. + - Add support to TSIG.fromString() for specifying an algorithm. + +7/30/2006 + - When converting a PublicKey to a DNS record, allow the algorithm + to be specified, as RSA keys can be either of the RSA-SHA1 or + RSA-MD5 algorithms (based on a patch from + Eric <gin...@us...>) + - When converting a PublicKey to a DNS record, allow the type (KEY + or DNSKEY) to be specified. + - Update the DNSSECVerifier code to use DNSKEY records, not KEY + records. + +7/30/2006 + - Added support for parsing the output of ipconfig in French . + (Frederic Bazin <fbazin@users sourceforge.net>) + +7/30/2006 + - If both "search" and "domain" lines are present in a resolv.conf + file, the domain line should be ignored. + +7/26/2006 + - Add support for the SPF record type. + +7/21/2006 + - DNSSEC.digestRRset could digest records in the wrong order. + (reported by David Blacka <da...@ve...> and + Mahendra Jain <Ma...@ve...>) + +6/26/2006 + - 2.0.2 released. + +6/22/2006 + - Add support for the IPSECKEY record type. + +5/18/2006 + - The result of a Lookup that involves a CNAME should include + the queried name as one of the aliases, not the CNAME target. + (Jon Lachelt <jon...@hp...>) + +2/13/2006 + - Loading zones containing RRsets with multiple records didn't work. + (reported by Olafur Gudmundsson" <og...@og...>) + +1/24/2006 + - AXFR requests could leak file descriptors if the connection + failed. (Can Bican <ca...@bi...>) + +11/30/2005 + - Add a Resolver.setTimeout(int secs, int msecs) method. + (requested by Dmitry Isakbayev) <is...@us...>) + +11/30/2005 + - 2.0.1 released. + +11/11/2005 + - The InetAddresses returned by Address.getByName() should have their + hostname copied from the input parameter. + (reported by Praveen Tammana <pra...@gm...>) + +11/7/2005 + - Update remaining DNSSEC code to be compliant with the current spec. + +11/6/2005 + - Add a Resolver.setEDNS(int level, int payloadSize, int flags, + List options) method, to allow a Resolver to automatically set + the DO flag, as well as future EDNS features. + (requested by Rick Wesson <we...@ar...>) + +10/25/2005 + - The Master(InputStream in, Name origin) constructor should not + always fail. + - Correctly handle the case where reading a Master from an InputStream + would throw a NullPointerException if a $INCLUDE file wasn't found. + (reported by Lars Petrus <Lar...@no...>) + +8/22/2005 + - Add Address.getByAddress(String) and + Address.getByAddress(String, family). + +7/21/2005 + - Zone.findExactMatch() would throw a NullPointerException if the + name didn't exist. + (reported by Hans Zandbelt <Han...@te...>) + +7/19/2005 + - Add support for binding clients to local addresses when using + a SimpleResolver. Also add the -b option to the dig program + to test this. (based on a patch by Bruno Dillenseger) + +7/5/2005 + - Add support to ResolverConfig for using the undocumented + sun.net.dns.ResolverConfiguration class to determine the list + of nameservers and search path; make this the default when + it works (Yannick Meudal <ya...@me...>). + +6/16/2005 + - The inbound zone transfer code failed to treat port 0 as the + default as it claimed to. (Bill Kuker <wc...@ri...>) + +6/15/2005 + - When doing a zone transfer with a SimpleResolver object, the + timeout was not properly obeyed. + (reported by Peter Bryant <pe...@pi...>) + +6/5/2005 + - Explictly register record type implementations instead of + using reflection; this should prevent hard to diagnose + problems resulting from partial compilation. + +5/31/2005 + - 2.0.0 released. + +5/16/2005 + - Fix the code to deal with TTL 0 data in the Cache. + +5/15/2005 + - Add unit tests for many classes. The unit tests are located + in the tests directory, which mirrors the org.xbill.DNS hierarchy. + (Matt Rutherford <rut...@cs...>) + +5/7/2005 + - Fix several problems with empty names. + (Matt Rutherford <rut...@cs...>) + +4/23/2005 + - As per RFC 2181, the maximum allowed TTL value is 0x7FFFFFFF. + Change TTL.parseTTL() to reflect this by silently clamping + larger 32 bit values. + +4/22/2005 + - Attempting to get the name/type/class/ttl of an empty RRset + throws an exception. + +4/21/2005 + - Remove RRset.getSecurity()/.setSecurity(). + +4/16/2005 + - Change the internal representation of empty records (that is, + records in the question section of a message or meta-records + used in dynamic update). + - Minor cleanups to the Mnemonic class. + (Matt Rutherford <rut...@cs...>) + +4/3/2005 + - Change the Cache from being periodically cleaned to being + size-bounded. (based on a patch from several years ago + from Joseph Shraibman <jk...@in...>). + - Remove the FindServer class. + - Added a Name Service Provider interface (dns,dnsjava). + (based on code from Paul Cowan <pw...@ya...>) + +4/1/2005 + - Use java.nio classes for sockets internally, which provide a + number of improvements, most visibly improved timeouts. + - Remove deprecated dns class. + - Simplify TSIG initialization; remove functions that should + have never existed. + - Remove Cache.setVerifier() and Cache.setSecurePolicy(). There + should be a way of enabling DNSSEC, but the existing code doesn't + work. + - Change the Zone constructors/factory methods to be consistent. + +3/29/2005 + - Use java.net.InetAddress for IPv6 addresses rather than a custom + class. + +3/20/2005 + - Fix several bugs in ResolverConfig on Windows. + (Brian McBarron <bmc...@us...>) + +3/15/2005 + - Clean up the synchronization in the RRset class + (reported by Daniel Jensen <dan...@sa...>) + +3/8/2005 + - Support the BIND misfeature of loading zones with no explicit + TTL by using the SOA minimum field. + +3/7/2005 + - 1.6.6 released. + +3/6/2005 + - $GENERATE statements should obey the start field. + +3/1/2005 + - Add support for HMAC-SHA1 and HMAC-SHA256 TSIG algorithms. + (suggested by Olafur Gudmundsson <og...@og...>) + +2/8/2005 + - Add infrastructure for parsing the output of ipconfig on + non-English version of windows, and add support for German + and Polish. (based on a patch by Piotr Kochanski) + +2/7/2005 + - Add Options.refresh() (based on a patch from Th Kuhne) + - Add the ResolverConfig class, which is largely based on the + FindServer class, except that it's not all static methods. + Add the ability to refresh the current ResolverConfig, and + make FindServer use ResolverConfig. + - Add Lookup.refreshDefault (based on a patch from Th Kuhne) + - Truncated messages aren't guaranteed to parse properly, so shouldn't + throw exceptions. (reported by Caleb Richardson <ca...@ev...>) + - Work around a TCP bug in whatever broken nameserver Enom is using. + (reported by Caleb Richardson <ca...@ev...>) + +2/4/2005 + - 1.6.5 released. + - Records of an unknown type and length 0 weren't handled properly. + (reported by Olafur Gudmundsson <og...@og...>) + - Fixed a bug in $INCLUDE handling. + (Christian Sepulveda <chr...@no...>) + +2/3/2005 + - The Lookup.run() method should be usable more than once on a Lookup + object. + (reported by Joseph Shraibman <jk...@in...>) + +10/31/2004 + - Add partial IPv6 support to the ReverseMap class. + (based on a patch from Th Kuhne) + +7/7/2004 + - Implement the $GENERATE master file directive. + +6/28/2004 + - Canonicalizing a name created with the Name(Name src, int n) + constructor caused an exception. + (based on a patch from Nigel Tamplin <ni...@me...>) + - Concatenating names caused an exception when the prefix was created + with the Name(Name src, int n) constructor. + (reported by Nigel Tamplin <ni...@me...>) + +6/22/2004 + - The DNSSEC digesting code shouldn't throw ClassCastExceptions. + (reported by Mike StJohns <Mik...@no...>) + - The label count in a generated SIG/RRSIG record was off by one. + (Mike StJohns <Mik...@no...>) + +6/8/2004 + - Rcode 4 is NOTIMP, not NOTIMPL. + +6/5/2004 + - Fixes to LOCRecord. + +6/3/2004 + - 1.6.4 released. + +5/26/2004 + - Properly handle text mnemonics in KEY records. + - Add support for the APL record type. + +5/25/2004 + - Fix a bug where parsing the text format of an NSEC record + incorrectly parsed one token too many. + +5/18/2004 + - 1.6.3 released. + +5/11/2004 + - Don't store the number of labels in a Name in a byte, as the maximum + value (128) cannot be stored in a byte. + +5/9/2004 + - Add support for options within an OPTRecord (loosely based on + a patch from Madhu Siddalingaiah <ma...@ma...>) + +4/18/2004 + - Add support for the SSHFP record type. + - Fix a bug in the zone code which would cause record lookups to fail. + +4/10/2004 + - When parsing paster files, handle the fact that class and ttl may + be in either order. + +4/8/2004 + - The opcode field in the DNS header was incorrectly parsed; this + would affect messages with opcodes other than QUERY. + (Madhu Siddalingaiah <ma...@ma...>) + +3/20/2004 + - 1.6.2 released. + - Lookups could return "referral" instead of "host not found" in some + cases. + +3/18/2004 + - Fix NullPointerExceptions caused by bad empty Record handling. + (reported by Dharmveer Jain <dha...@ya...>) + +3/16/2004 + - 1.6.1 released. + - When loading master files with $INCLUDE statements, the included + files should be opened relative to the current directory, not + the directory of the parent file. + +3/12/2004 + - Make it possible to use a Tokenizer without leaving files open. + +3/4/2004 - 3/12/2004 + - Add support for more record types (AFSDB, GPOS, ISDN, MB, MD, MF, MG, + MINFO, MR, NSAP, NSAP-PTR, NULL, PX, RT, WKS, X25). + +3/3/2004 + - Cached NXDOMAINs were ignored, which caused extra queries to + be sent (reported by Damon Hart-Davis <d...@hd...>). + +2/25/2004 + - Attempting to load a zone without specifying an origin failed. + +2/24/2004 + - 1.5.2 released. + +2/3/2004 + - Message.isSigned() should return true if we signed the Message + with a TSIG. + (reported by Shobana Sampath <sho...@ci...>) + - Implement NSEC, DNSKEY, and RRSIG record types. (loosely based on + a patch from David Blacka <da...@ve...>). + - Change the representations of sections, rcodes, opcodes, flags, + and credibility to int. + +1/28/2004 + - Attempt to better deal with OutOfMemoryErrors when creating + threads during the resolution process. + (reported by Joseph Shraibman <jk...@in...>) + +1/27/2004 + - Change the representation of a TSIG error from a byte to an int. + - Improve error messages from failed Lookups; treat SERVFAIL + as a temporary failure, not an unrecoverable error. + (Joseph Shraibman <jk...@in...>) + +1/16/2004 + - The master file reader should propagate TTLs through $INCLUDE + statements. (David Blacka <da...@ve...>) + +1/12/2004 + - Add a MANIFEST to the jar file containing implementation name and + version. (Harel Efraim <har...@no...>) + +1/11/2004 + - Fix a couple minor bugs found by FindBugs + (http://www.cs.umd.edu/~pugh/java/bugs/) + +1/8/2004 + - 1.5.1 released. + - LOC records weren't parsed correctly. + (reported by Harel Efraim <har...@no...>) + - Lines with only whitespace in master files should be ignored. + +12/15/2003 + - TTLs weren't handled properly in the master file parser. + (Jack Tavares <ta...@dr...>) + +12/11/2003 + - 1.5.0 released. + +12/8/2003 + - Change to the BSD license. + - Replace the deprecated Name(String) and Name(String, Name) + constructors with new versions that properly return exceptions. + +12/6/2003 + - Make the J2SE javadoc link a property in build.xml. (Ville Skytt\xE4) + +11/24/2003 + - Lookup should check that the name, type, and class in the question + section of a response match that of the query. + - SimpleResolver should check that the message id of the response + is the same as the message id of the query. On a sufficiently + busy client, sockets can be reused fast enough that late responses + can come in, and should be ignored. + (seen by Joseph Shraibman <jk...@in...>) + +11/17/2003 + - The Lookup code didn't handle CNAMEs pointing at nonexistant names. + (reported by Joseph Shraibman <jk...@in...>) + +11/11/2003 + - Store a weak reference to the Cache in the CacheCleaner thread, and + kill the thread when the Cache is finalized. + (suggested by Joseph Shraibman <jk...@in...>) + + - When a Lookup uses a null cache, the temporary cache it creates + should not have a CacheCleaner thread. + (based on a suggestion by Joseph Shraibman <jk...@in...>) + +10/31/2003 + - Record.hashCode() didn't return consistent hash codes, and didn't + ignore the TTL (which it should, and which Record.equals() does). + +10/27/2003 + - DNS TTLs and other 32 bit unsigned values are now represented as + longs, not ints. This is an API change, but allows the full range + to be used. + - Add the Serial class for serial arithmetic. + +9/30/2003 + - 1.4.3 released. + - Fix a bit of code that required Java 1.4. + +9/29/2003 + - 1.4.2 released. + +9/26/2003 + - A Lookup shouldn't die when receiving a referral response; it should + return an error. (reported by Elinor Chang <eli...@ya...>) + - A Lookup should distinguish between timeouts and other network + errors. + - When parsing IP addresses from text format, treat the presence of + a leading zero on an octet as an error. It's unclear whether + it would be treated as decimal or octal, which means it should + be fixed. (reported by Marcos Sanz/Denic <sa...@de...>) + +9/17/2003 + - Fix an off-by-one error in the Name code; labels of length 63 + were not accepted (patch from David Blacka <da...@ve...>) + +9/2/2003 + - 1.4.1 released. + +9/1/2003 + - The Update.delete(Record) method needs to reset the TTL of the cloned + record to 0. (reported by Edwin R. Rivera <er...@mo...>) + +8/23/2003 + - Change Record.fromString() to expect an EOL/EOF token at the end + of the string, so that extraneous tokens can be detected. The master + file parser was updated to this change. + (noticed by Bob Halley <bob...@no...>) + +8/22/2003 + - Changing TXTRecord.getStrings() from returning a List of Strings + to a List of byte []'s was a bad idea. Change it back, and + add TXTRecord.getStringsAsByteArrays(). + (reported by Blake Ramsdell <bl...@br...>) + +8/21/2003 + - 1.4.0 released. + +8/20/2003 + - Add the ReverseMap class, which contains functions to construct + names to be used in reverse map zones. + +8/13/2003 + - When looking up a one label unqualified name which fails to match + all searchlist entries, don't append the root label and try again. + This is recommended by RFC 1536, section 6: "Only if the name, so + generated, returns an NXDOMAIN is the original name tried as a Fully + Qualified Domain Name. And only if it contains at least one period." + +7/18/2003 + - Remove lots of unused imports. (Jared Richardson <ja...@nc...>) + +7/14/2003 + - Fix a long-existing bug where empty records (in update messages) + were incorrectly handled + (reported by Kevin C Miller <ke...@an...> + +6/22/2003 + - DNS types and classes are now represented as ints, not shorts. + This is an API change, but allows the full type/class range + to be used. + +6/18/2003 + - Quoted strings didn't handle \ddd escapes. + +6/17/2003 + - Fix an ArrayIndexOutofBoundsException triggered by load balancing + in the ExtendedResolver. + (reported by Norbert Desautels <nde...@gd...>) + +6/1/2003 + - Add the Name.relativize() method to convert an absolute name to + a name relative to a specified origin. + - Add the Update class, which contains helper routines used to + construct dynamic update messages. + +5/28/2003 + - Replace org.xbill.DNS.utils.MyStringTokenizer with + org.xbill.DNS.Tokenizer, which is a far more robust and correct + DNS tokenizer. Convert everything to use it. + - Fix text format of TXT, NAPTR, and HINFO records. + +5/28/2003 + - When constructing a record, check that all names are absolute. + +5/27/2003 + - 1.3.3 released. + +4/26/2003 + - The master file parser should accept BIND format TTLs. + +4/10/2003 + - The Inet6Address class incorrectly parsed some addresses. + (reported by steve weiland <st...@wi...>) + +4/7/2003 + - Records were not sorted properly (reported by + Joseph K Shraibman <jk...@ak...>) + +4/2/2003 + - Fix off-by-one error in Name.compareTo (David Blacka) + +3/30/2003 + - Add the ZoneTransferIn class, which performs incoming AXFR/IXFR + - Make TSIG verification of multiple-message responses reentrant. + - Fix incorrect string quoting. + - Make records print on a single line by default; add the 'multiline' + option to use the more verbose format. + +3/17/2003 + - Make the routine that converts an IP address from a string + more efficient and correct. + (based on a patch by Sean O'Neil <Se...@te...>) + +2/12/2003 + - Fix an infinite loop that could occur when processing a response + containing a CNAME loop and an rcode of NOERROR. + (reported by Sean O'Neil <Se...@te...>) + +1/25/2003 + - Cleanup and improvements to the ExtendedResolver class. + +1/23/2003 + - Add the setMaxCache() method to the Cache class. + - Check for non-absolute names when creating Records. + +1/21/2003 + - 1.3.2 released. + +1/20/2003 + - Certain responses with CNAMEs weren't being properly cached. + (reported by Sean O'Neil <Se...@te...>) + - Add a 'compile' target to build.xml, and make the 'all' target + both compile and build the jar file. + (Jon Scott Stevens <jo...@la...>) + +12/22/2002 + - Check for SecurityExceptions in the Options static initializer; + this was preventing the use of dnsjava in an unsigned applet. + (reported by Peter Westerink <pe...@us...>). + +12/15/2002 + - Converting some types of records (TXT, for example) to wire format + could throw an IndexOutOfBoundsException. + - TSIG signed UDP queries weren't properly verified by jnamed. + - Add a method to render a Message with a specified maximum size - + this method will properly truncate large responses and apply + TSIG signatures. + +12/14/2002 + - Move additional data processing to the Record class from jnamed; + make jnamed use it, as well as the caching code. + +12/9/2002 + - Add the Lookup class, which is what the dns class should have been, + and make the lookup sample program use it. + +12/9/2002 + - When caching a message, a response object can be constructed + immediately. + +12/4/2002 + - 1.3.1 released. + +12/3/2002 + - If a subresolver of an ExtendedResolver exited by throwing + a RuntimeException, the ExtendedResolver would throw a + ClassCastException. It should rethrow the RuntimeException. + +12/3/2002 + - The Name code didn't handle names with non-printable characters. + (found by Serge Sozonoff <se...@gl...>) + +11/28/2002 + - Fix a potential deadlock in the WorkerThread class. + (found by Serge Sozonoff <se...@gl...>) + +11/26/2002 + - Fix a bug where looking up names without trailing dots + would fail if there was no searchlist. + +10/31/2002 + - Fix a bug in searchlist processing on Windows. + +10/20/2002 + - Record.toWire() and Record.toWireCanonical() do not need to + be declared as throwing IOException, since there's no + legitimate reason for them to throw one. + +10/18/2002 + - Race condition fixes and memory usage improvements to the + NameSet class, used by Cache and Zone. + +10/16/2002 + - 1.3.0 released. + +10/11/2002 + - Add Name.getLabel() + +10/10/2002 + - When cleaning the cache, catch ConcurrentModificationExceptions. + +10/8/2002 + - Cleanups to Cache.addMessage() and the Credibility code. + +10/7/2002 + - Fix problems with search path handling in the dns class. + - Possible race condition fixes to the Cache code. + +10/6/2002 + - Fix minor bugs in Name code (Bob Halley <bob...@no...>) + +10/1/2002 + - Memory usage and speed improvements to the TypeMap class. + +9/25/2002 + - Add the verbosecache option. + - Significant memory usage improvements to the Name class. + +9/23/2002 + - Memory usage improvements to the ARecord class. + +9/16/2002 + - Support for NetWare's sys:/etc/resolv.cfg file. + (Scott Villinski <sc...@vi...>) + +9/5/2002 + - When looking for an rdataset in a zone or cache, seeing a CNAME + above the name is not an error. + (reported by Andrew Houghton <aa...@vo...>) + +8/31/2002 + - Changed the code that dynamically loads record types; hopefully + this will solve some of the mysterious problems that I think + are related to non-English versions of Windows. + - Clean up the Name code. + +8/28/2002 + - Remove support for bitstring labels, since they're now deprecated. + +8/16/2002 + - Address.isDottedQuad didn't check to see if the input String + contained characters after an IP address. + (Marcos Sanz <sa...@de...>) + +8/11/2002 + - Querying for a nonexistant name with exactly one label didn't return. + +8/10/2002 + - Add Ant build script (Blake Ramsdell <bl...@br...>) + +8/6/2002 + - The AAAARecord constructor was broken. + - The Record class now implements Comparable. + +6/22/2002 + - Significant speed improvements in the Record class and its + subclasses. + +6/20/2002 + - Add Zone.removeRecord() (based on code from Adam Cassar + <ada...@ne...>) + - Add Zone.toMasterFile() (based on code from Adam Cassar) + - Performance enhancements to the Name object. + - Add the "-t type" option to the lookup program. + +6/16/2002 + - Update lots of code to use Collections instead of JDK 1.1 + Vectors & Hashtables. + +5/28/2002 + - fix some limitations of name parsing. + (reported by Tasos Kotsikonas <ta...@bo...>) + +5/4/2002 + - added the 'sleep' and 'date' commands to the update client. + (Olafur Gudmundsson <og...@og...>) + +4/29/2002 + - 1.2.4 released + +4/25/2002 + - Add a constructor for building a zone from an array of records. + (based on code from Adam Cassar <ada...@ne...>) + +4/24/2002 + - Reduce the memory usage of the RRset class. + - Add a new factory method for creating a Record from a + String, rather than a pre-tokenized String. + - Reduce the memory usage of the ARecord class. + +4/23/2002 + - Fix potential race conditions in the RRset class. + (David Esposito <esp...@ne...>) + - Fix potential race condition in the WorkerThread class when two + threads complete their run methods nearly simultaneously. + (David Esposito) + - Add a new factory method for creating a Record, where the length + of the rdata is not explicitly specified, but inferred from + data.length. + +4/22/2002 + - Improve name decompression by not requiring a decompression context. + +3/27/2002 + - Add support for the Delegation Signer (DS) record. (David Blacka) + +3/22/2002 + - Record.equals() did not properly canonicalize names. + - Record.equals() should ignore the TTL. + +3/19/2002 + - When a compressed name is parsed, it should be added to the + compression table, so that future pointers to that name work. + (reported by Blake Ramsdell <bl...@br...>) + +3/14/2002 + - In jnamed, AXFR responses didn't have the message ID or flags + set correctly. + - jnamed failed to respond to messages signed with unknown keys. + - jnamed did not sign responses to signed AXFR queries. + +1/21/2002 + - Handle empty domain statements in /etc/resolv.conf. (reported + by Blake Ramsdell <bl...@br...>) + +1/1/2002 + - Minor performance enhancments (suggested by Christopher Brind) + +10/14/2001 + - Add support for the DNSSEC RSA-SHA1 algorithm (David Blacka) + - Add rdataToWireCanonical() (David Blacka) + +9/27/2001 + - jnamed can now listen on specific addresses, with the "address" + keyword in the config file. + +9/23/2001 + - 1.2.3 released + +9/14/2001 + - Creating an Enumeration of an empty RRset caused an infinite loop. + (David Blacka <da...@re...>) + +8/9/2001 + - nsupdate compatibility and a bug fix to the update client. + (patch from David Sward <da...@be...>) + +8/8/2001 + - The results of ANY queries were not properly cached. + +8/4/2001 + - 1.2.2 released + +7/22/2001 + - Added the -q (print query) option to dig. + - Bitstring labels are now canonicalized. + - jnamed implements the DO (DNSSEC OK) bit. + +7/19/2001 + - A string tokenizer bug caused TXT records with one string to be + incorrectly parsed. (David Blacka) + - Added Name.getLabelString(). + +7/17/2001 + - Started implementing Name.compareTo(). (loosely based on a + patch from David Blacka). + +7/16/2001 + - Converting a AAAA record to wire format was broken. + (David Blacka) + - Inet6Address did not properly reject addresses that are too + long or too short, and also didn't properly handle addresses + with one number after a double colon. + - Key footprints were computed incorrectly. Also cache footprints + in the KEYRecord to avoid recomputation. (David Blacka) + - Added the -d flag to dig, which sets the DNSSEC OK bit. + +7/13/2001 + - KEY flags were incorrect (David Blacka <da...@re...>) + - Add routines for parsing a master file from a non-file input + source (David Blacka) + - base64.formatString() didn't work if lineLength wasn't 64. + (David Blacka) + - Add support for the DNSSEC OK extended flag (David Blacka) + - Allow the caller of a Resolver to add an OPT record to a query. + (original patch from David Blacka). + +6/30/2001 + - 1.2.1 released + +5/23/2001 + - Automatically determining name servers didn't work on Windows 2000. + +4/13/2001 + - Converting a Name to a String does proper character escaping. + +4/7/2001 + - 1.2.0 released + +3/21/2001 + - Only cache relevant data from answers. + - Cache negative responses more correctly. + +3/14/2001 + - Handle TTLs greater than 2^31. + +3/10/2001 + - Performance and memory improvements to the Name object. + +3/7/2001 + - Performance improvements to TypeMap (used by Zone and Cache). + +3/6/2001 + - Lots of standards compliance related fixes. + +3/4/2001 + - Improved class handling. + - A few minor CNAME related fixes. + +2/27/2001 + - Referrals weren't returned correctly from jnamed. + +1/15/2001 + - Fix some signed/unsigned printing issues for KEY records + (Pasi Eronen <pe...@ik...>) + - Add routines to generate SIG(0) message signatures + (Pasi Eronen <pe...@ik...>) + +1/8/2001 + - Add support for unknown RR types & classes. + +12/3/2000 + - The target in an MX record can be compressed. + +11/18/2000 + - Add jnamed.conf example to USAGE + +8/27/2000 + - 1.1.6 released + - The high level api wasn't properly initialized. + (Christopher Fitch <cf...@sb...>) + - Added a routine to build a SIG record based on the results of + a DSA signature (Pasi Eronen <pe...@ik...>) + +8/13/2000 + - Added 'clear' command to update client + - Removed some deprecated code + +8/8/2000 + - Invalid binary labels were not always rejected + - SRV initialization didn't work (reported by Chuck Santos + <cs...@ne...>) + - jnamed failed if no Cache was specified + - The Zone object didn't handle zones with no NS records. + - Added support for the NAPTR record (Chuck Santos + <cs...@ne...>) + +7/17/2000 + - 1.1.5 released + - CERT records were printed with a negative keytag half the time. + (reported by Jakob Schlyter <ja...@cr...>). + - Printing a KEY record prints the key id. + (Jakob Schlyter <ja...@cr...>) + +6/25/2000 + - A Cache now contains a thread that periodically removes expired + data. + +6/4/2000 + - update client syntax enhancement - add/delete/require/prohibit/glue + no longer require -r, -s, or -n. + +6/3/2000 + - update client supported prohibiting individial records, which is + not supported by dynamic update. + +5/21/2000 + - Win2000 support + +4/15/2000 + - ExtendedResolver supports load balancing of servers. + +4/2/2000 + - Minor fix to base64 decoding + +3/22/2000 + - name comparison should always be case insensitive + (Darrell Kindred <dki...@ti...> + +3/5/2000 + - 1.1.4 released + - added Cache.setMaxNCache(), which sets the maximum amount of time + that a negative answer is cached. + +2/10/2000 + - update client: add show command, catch socket exception, don't send + empty updates, assert tsig ok/failed/unsigned + +2/8/2000 + - 1.1.3 released + - Added lookup program + - FindServer finds a search path on Win95/WinNT + +2/7/2000 + - minor TKEY record updates + - FindServer should work on Win95/WinNT + - Added 'make jar' and a jar file + +1/20/2000 + - Added AAAA record + +1/13/2000 + - 1.1.2 released + - dns.setResolver() clears the cache + +11/7/1999 + - Added EDNS support to update client + +11/2/1999 + - A key starting with ':' is parsed as hex + +10/28/1999 + - minor TKEY fixes and TSIG updates + +10/5/1999 + - misc. small fixes + +10/4/1999 + - Missed TKEY in the type map + +9/26/1999 + - Added TKEY record + +9/25/1999 + - Diffie-Hellman key updates + +9/23/1999 + - dns.server and dns.search are now comma-delimited strings + +9/20/1999 + - 1.1 released (finally) + - Change OPT to type 41 and fixed related stuff + - Change license to LGPL + +9/16/1999 + - Cache & DNSSEC bug fixes + +9/9/1999 + - A6 record support (and IPv6 addresses) + +9/6/1999 + - jnamed has limited support for SIG records + +9/4/1999 + - res.sendAXFR() is now obsolete, just use res.send() + - jnamed (and Zone) support incoming AXFR + - Zone handles wildcards that replace multiple labels + +9/2/1999 + - Bitstrings are now compatible with current BIND 9 + - jnamed (and Zone) support outgoing AXFR + - jnamed uses jnamed.conf by default, can specify port in config file, + returns NOTIMPL on meta-queries other than AXFR and ANY. + - DNSSEC can now verify records that came from wildcard expansion + - SimpleResolver handles AXFR REFUSED + - Lots of EDNS updates + +9/1/1999 + - More bitstring fixes. + - Added RP record (from Tom Scola <ts...@re...>) + +8/29/1999 + - More bitstring label stuff. I think they work now. + _ DataByteInputStream cleanup. Should handle errors better now. + +8/26/1999 + - More verbose options + - TSIG badtime bug & better reporting + - Large TTL bug + - MyStringTokenizer.setNoEscapeCharacter() + +8/25/1999 + - Imported DNSSEC code + - New options: tsigfudge, verbosehmac, verbosemsg + - Added utils.hexdump to print a formatted dump of bytes + +8/24/1999 + - More bitstring label support + +8/23/1999 + - All data now passes through the Cache. This should help with + DNSSEC verification + - Added basic DNSSEC verification + - Fixes for handling data with TTL 0 + - Started adding bitstring labels + - Added support for DNAME records (no processing yet) + +8/8/1999 + - Started adding global options (Options class) + +8/7/1999 + - Type and Class ANY should work correctly now + - jnamed and Zone handle wildcard records + - Cache returns wildcard set if name is negatively cached + - TTL can be converted into BIND format + +8/6/1999 + - Updates to KEYRecord - getFootprint() and renamed constants + +8/2/1999 + - 1.0.2 released + - WorkerThread obscure race conditions fixed (patches provided by + Tom May <to...@go...>) + +8/1/1999 + - Added getResolver/getCache to dns class + - RRset now has deleteRR and is better synchronized + - Cache now has flushName/flushSet + - Resolver.sendAsync returns an Object instead of an int + - Socket cleanup (patches provided by Tom May <to...@go...>) + - WorkerThread's idle lifetime and max threads are now configurable + - HMAC-MD5 logic bug + +7/5/1999 + - 1.01 released + - fixed a hang with ExtendedResolver and Exceptions + +6/30/1999 + - dns search path should always include a . at the end. The only + time this bug would show up is wh... [truncated message content] |
From: <ba...@us...> - 2007-03-07 15:18:49
|
Revision: 88 http://trivial.svn.sourceforge.net/trivial/?rev=88&view=rev Author: baepel Date: 2007-03-07 07:18:46 -0800 (Wed, 07 Mar 2007) Log Message: ----------- comment rendre un truc simple complique ... Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-07 14:26:08 UTC (rev 87) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-07 15:18:46 UTC (rev 88) @@ -10,6 +10,8 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import java.awt.datatransfer.DataFlavor; + public class ClipboardReaderImpl implements ClipboardReader, Runnable { private static Log log = LogFactory.getLog(ClipboardReaderImpl.class); @@ -21,8 +23,10 @@ private Clipboard clipboard; - String curString; - String lastString; + Transferable curTrans; + Transferable lastTrans; + + public final DataFlavor STRING_FLAVOR = java.awt.datatransfer.DataFlavor.stringFlavor; public ClipboardReaderImpl() { clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); @@ -31,17 +35,18 @@ public void run() { while (running) { - // get current string from clipboard - Transferable trans = clipboard.getContents(null); - try { - curString = trans.getTransferData(java.awt.datatransfer.DataFlavor.stringFlavor).toString(); - // check if it has changed - if (!curString.equals(lastString)) { - lastString = curString; - distributedClipboard.setLocalContent(curString); + // get current transferable from clipboard + curTrans = clipboard.getContents(null); + if (!sameTransferables(curTrans, lastTrans)) { + if (curTrans.isDataFlavorSupported(STRING_FLAVOR)) { + try { + String curString = curTrans.getTransferData(STRING_FLAVOR).toString(); + lastTrans = curTrans; + distributedClipboard.setLocalContent(curString); + } catch (Exception e) { + e.printStackTrace(); + } } - } catch (Exception e) { - e.printStackTrace(); } try { Thread.sleep(100); @@ -72,4 +77,19 @@ stopped.wait(); } } + + private boolean sameTransferables(Transferable cur, Transferable last) { + if (last == null) { + return last == cur; + } else if (last.isDataFlavorSupported(STRING_FLAVOR) && + cur.isDataFlavorSupported(STRING_FLAVOR)) { + try { + return last.getTransferData(STRING_FLAVOR).toString().equals( + cur.getTransferData(STRING_FLAVOR).toString()); + } catch (Exception e) { + e.printStackTrace(); + } + } + return false; + } } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java 2007-03-07 14:26:08 UTC (rev 87) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java 2007-03-07 15:18:46 UTC (rev 88) @@ -18,10 +18,10 @@ public void writeToClipboard(String content) { StringSelection strSel = new StringSelection(content); - // not sure yet what clipboardowner is - may change in the future + // not sure yet what 'clipboardowner' is - may change in the future Transferable trans = strSel; ClipboardOwner owner = strSel; clipboard.setContents(trans, owner); } -} +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 14:26:11
|
Revision: 87 http://trivial.svn.sourceforge.net/trivial/?rev=87&view=rev Author: jlgeering Date: 2007-03-07 06:26:08 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Windaube laucher and mac get username as bonjour name Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-07 13:40:13 UTC (rev 86) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-07 14:26:08 UTC (rev 87) @@ -1,5 +1,7 @@ package net.sf.trivial.easypaste.launcher; +import java.util.Properties; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -9,6 +11,10 @@ public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { String os = System.getProperty("os.name"); +// Properties p = System.getProperties(); +// for (Object key : System.getProperties().keySet()) { +// System.out.println(key + "=" + System.getProperty("" + key)); +// } log.debug("os.name=" + os); if ("Mac OS X".equals(os)) { log.info("Detected Mac OS X"); @@ -18,6 +24,10 @@ log.info("Detected Linux"); Class.forName("net.sf.trivial.easypaste.launcher.pi.EasyController").newInstance(); } + else if ("Windows XP".equals(os)) { + log.info("Detected Windows XP"); + Class.forName("net.sf.trivial.easypaste.launcher.pi.EasyController").newInstance(); + } else { log.warn("Unknown OS"); // TODO use pi ? Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java 2007-03-07 13:40:13 UTC (rev 86) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java 2007-03-07 14:26:08 UTC (rev 87) @@ -20,11 +20,12 @@ private static String name; public EasyController() { - try { - name = InetAddress.getLocalHost().getHostName(); - } catch (UnknownHostException e1) { - name = Messages.getString("EasyController.ServiceName"); //$NON-NLS-1$ - } +// try { +// name = InetAddress.getLocalHost().getHostName(); +// } catch (UnknownHostException e1) { +// name = Messages.getString("EasyController.ServiceName"); //$NON-NLS-1$ +// } + name = System.getProperty("user.name"); DistributedClipboard dclip = new DistributedClipboardImpl(PORT); ClipboardReader creader = new ClipboardReaderImpl(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2007-03-07 13:40:22
|
Revision: 86 http://trivial.svn.sourceforge.net/trivial/?rev=86&view=rev Author: baepel Date: 2007-03-07 05:40:13 -0800 (Wed, 07 Mar 2007) Log Message: ----------- remove loopback bug -> detect correct network interfaces Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-07 11:33:00 UTC (rev 85) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-07 13:40:13 UTC (rev 86) @@ -2,6 +2,9 @@ import java.io.IOException; import java.net.InetAddress; +import java.net.NetworkInterface; +import java.util.Enumeration; +import java.util.Vector; import javax.jmdns.JmDNS; @@ -34,7 +37,35 @@ } private JmDNS createJmDNS() throws IOException { - return new JmDNS(InetAddress.getLocalHost()); + InetAddress finalAddress = null; + System.out.println("Starting service on the following interfaces:"); + try { + Vector<NetworkInterface> possibleValues = new Vector<NetworkInterface>(); + + Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); + while (interfaces.hasMoreElements()) { + possibleValues.add(interfaces.nextElement()); + } + + for (NetworkInterface ni : possibleValues) { + Enumeration<InetAddress> e = ni.getInetAddresses(); + while (e.hasMoreElements()) { + InetAddress ia = e.nextElement(); + if (!ia.isLoopbackAddress() && !ia.getHostAddress().contains(":")) { + finalAddress = ia; + System.out.println("\t" + ni.getDisplayName() + + "\t" + ia.getHostName() + + " (" + ia.getHostAddress() + ")"); + + } + } + } + } + catch (Exception e) { + e.printStackTrace(); + System.exit(1); + } + return new JmDNS(finalAddress); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 11:33:50
|
Revision: 85 http://trivial.svn.sourceforge.net/trivial/?rev=85&view=rev Author: jlgeering Date: 2007-03-07 03:33:00 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Network Interface test stuff. Modified Paths: -------------- trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java Modified: trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java =================================================================== --- trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java 2007-03-07 11:15:10 UTC (rev 84) +++ trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java 2007-03-07 11:33:00 UTC (rev 85) @@ -19,26 +19,16 @@ possibleValues.add(interfaces.nextElement()); } -// byte[] local = {Byte.parseByte("127"), Byte.parseByte("0"), Byte.parseByte("0"), Byte.parseByte("1")}; -// possibleValues.remove(NetworkInterface.getByInetAddress(InetAddress.getByAddress(local))); - for (NetworkInterface ni : possibleValues) { - System.out.println(ni); + Enumeration<InetAddress> e = ni.getInetAddresses(); + System.out.println(ni.getDisplayName()); + while (e.hasMoreElements()) { + InetAddress ia = e.nextElement(); + System.out.println("\t" + ia.getHostName() + " (" + ia.getHostAddress() + ")"); + } } -// Object selectedValue = null; -// if (possibleValues.size()>1) { -// selectedValue = javax.swing.JOptionPane.showInputDialog( -// null, "Choose a network interface", "Input", -// javax.swing.JOptionPane.INFORMATION_MESSAGE, -// null, possibleValues.toArray(), null); -// if (selectedValue == null) {System.exit(0);} -// } -// else { -// selectedValue = possibleValues.get(0); -// } -// InetAddress inetAddress = (InetAddress)(((NetworkInterface) selectedValue).getInetAddresses().nextElement()); -// System.out.println(inetAddress); + } catch (Exception e) { e.printStackTrace(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-07 11:15:13
|
Revision: 84 http://trivial.svn.sourceforge.net/trivial/?rev=84&view=rev Author: jlgeering Date: 2007-03-07 03:15:10 -0800 (Wed, 07 Mar 2007) Log Message: ----------- Network Interface test stuff. Added Paths: ----------- trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java Added: trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java =================================================================== --- trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java (rev 0) +++ trunk/eclipse/easypaste/src/test/NetworkInterfaceTest.java 2007-03-07 11:15:10 UTC (rev 84) @@ -0,0 +1,48 @@ +package test; + +import java.net.InetAddress; +import java.net.NetworkInterface; +import java.util.Enumeration; +import java.util.Vector; + +public class NetworkInterfaceTest { + + /** + * @param args + */ + public static void main(String[] args) { + try { + Vector<NetworkInterface> possibleValues = new Vector<NetworkInterface>(); + + Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); + while (interfaces.hasMoreElements()) { + possibleValues.add(interfaces.nextElement()); + } + +// byte[] local = {Byte.parseByte("127"), Byte.parseByte("0"), Byte.parseByte("0"), Byte.parseByte("1")}; +// possibleValues.remove(NetworkInterface.getByInetAddress(InetAddress.getByAddress(local))); + + for (NetworkInterface ni : possibleValues) { + System.out.println(ni); + } + +// Object selectedValue = null; +// if (possibleValues.size()>1) { +// selectedValue = javax.swing.JOptionPane.showInputDialog( +// null, "Choose a network interface", "Input", +// javax.swing.JOptionPane.INFORMATION_MESSAGE, +// null, possibleValues.toArray(), null); +// if (selectedValue == null) {System.exit(0);} +// } +// else { +// selectedValue = possibleValues.get(0); +// } +// InetAddress inetAddress = (InetAddress)(((NetworkInterface) selectedValue).getInetAddresses().nextElement()); +// System.out.println(inetAddress); + } + catch (Exception e) { + e.printStackTrace(); + System.exit(1); + } + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fte...@us...> - 2007-03-06 20:21:10
|
Revision: 83 http://trivial.svn.sourceforge.net/trivial/?rev=83&view=rev Author: fterrier Date: 2007-03-06 12:21:04 -0800 (Tue, 06 Mar 2007) Log Message: ----------- VOILA TON COMMIT Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-05 12:39:52 UTC (rev 82) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-06 20:21:04 UTC (rev 83) @@ -36,10 +36,11 @@ private final JmDNS jmdns; public void browse(String proto) { - jmdns.addServiceListener(proto, this); + jmdns.addServiceListener(proto+"local.", this); } public void stop() { + jmdns.unregisterAllServices(); jmdns.close(); } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-05 12:39:52 UTC (rev 82) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-06 20:21:04 UTC (rev 83) @@ -21,7 +21,7 @@ public void register(String name, String proto, int port) { try { - ServiceInfo info = new ServiceInfo(proto, name, port, ""); + ServiceInfo info = new ServiceInfo(proto+"local.", name, port, ""); jmdns.registerService(info); } catch (IOException e) { log.error("Could not register",e); Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java 2007-03-05 12:39:52 UTC (rev 82) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java 2007-03-06 20:21:04 UTC (rev 83) @@ -20,11 +20,10 @@ public EasyController() { try { - name = InetAddress.getLocalHost().getHostName(); + name = InetAddress.getLocalHost().getHostName().replace(".", "_"); } catch (UnknownHostException e1) { name = Messages.getString("EasyController.ServiceName"); //$NON-NLS-1$ - } - + } DistributedClipboard dclip = new DistributedClipboardImpl(PORT); ClipboardReader creader = new ClipboardReaderImpl(); ClipboardWriter cwriter = new ClipboardWriterImpl(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2007-03-05 12:39:53
|
Revision: 82 http://trivial.svn.sourceforge.net/trivial/?rev=82&view=rev Author: baepel Date: 2007-03-05 04:39:52 -0800 (Mon, 05 Mar 2007) Log Message: ----------- added clipboardwriter Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-04 17:01:51 UTC (rev 81) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-05 12:39:52 UTC (rev 82) @@ -32,9 +32,9 @@ public void run() { while (running) { // get current string from clipboard - Transferable trans = clipboard.getContents(null); + Transferable trans = clipboard.getContents(null); try { - curString = (String) trans.getTransferData(java.awt.datatransfer.DataFlavor.stringFlavor); + curString = trans.getTransferData(java.awt.datatransfer.DataFlavor.stringFlavor).toString(); // check if it has changed if (!curString.equals(lastString)) { lastString = curString; Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java 2007-03-04 17:01:51 UTC (rev 81) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardWriterImpl.java 2007-03-05 12:39:52 UTC (rev 82) @@ -1,7 +1,10 @@ package net.sf.trivial.easypaste.internal.pi; import java.awt.datatransfer.Clipboard; +import java.awt.datatransfer.ClipboardOwner; +import java.awt.datatransfer.StringSelection; import java.awt.Toolkit; +import java.awt.datatransfer.Transferable; import net.sf.trivial.easypaste.ClipboardWriter; @@ -14,7 +17,11 @@ } public void writeToClipboard(String content) { - // clipboard.add ... + StringSelection strSel = new StringSelection(content); + // not sure yet what clipboardowner is - may change in the future + Transferable trans = strSel; + ClipboardOwner owner = strSel; + clipboard.setContents(trans, owner); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-04 17:01:50
|
Revision: 81 http://trivial.svn.sourceforge.net/trivial/?rev=81&view=rev Author: jlgeering Date: 2007-03-04 09:01:51 -0800 (Sun, 04 Mar 2007) Log Message: ----------- organized imports Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/NetworkServer.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/NetworkServer.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/NetworkServer.java 2007-03-04 16:38:39 UTC (rev 80) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/NetworkServer.java 2007-03-04 17:01:51 UTC (rev 81) @@ -5,8 +5,6 @@ import java.net.ServerSocket; import java.net.Socket; -import net.sf.trivial.easypaste.DistributedClipboard; - public class NetworkServer extends Thread { private DistributedClipboardImpl clipboard; Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-04 16:38:39 UTC (rev 80) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-04 17:01:51 UTC (rev 81) @@ -1,8 +1,5 @@ package net.sf.trivial.easypaste.internal.pi.presence; -import java.io.IOException; -import java.net.InetAddress; - import javax.jmdns.JmDNS; import javax.jmdns.ServiceEvent; import javax.jmdns.ServiceListener; Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-04 16:38:39 UTC (rev 80) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-04 17:01:51 UTC (rev 81) @@ -1,13 +1,10 @@ package net.sf.trivial.easypaste.internal.pi.presence; import java.io.IOException; -import java.net.InetAddress; import javax.jmdns.JmDNS; import javax.jmdns.ServiceInfo; -import net.sf.trivial.easypaste.launcher.EasyStart; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -34,5 +31,4 @@ public void stop() { jmdns.close(); } - } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fte...@us...> - 2007-03-04 16:38:45
|
Revision: 80 http://trivial.svn.sourceforge.net/trivial/?rev=80&view=rev Author: fterrier Date: 2007-03-04 08:38:39 -0800 (Sun, 04 Mar 2007) Log Message: ----------- Je m'appeleu fraenzel et je joue a WarCraft, bleubleubleu Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 16:26:57 UTC (rev 79) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 16:38:39 UTC (rev 80) @@ -10,7 +10,6 @@ public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { String os = System.getProperty("os.name"); log.debug("os.name=" + os); - os = "Linux"; if ("Mac OS X".equals(os)) { log.info("Detected Mac OS X"); Class.forName("net.sf.trivial.easypaste.launcher.mac.EasyController").newInstance(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-04 16:26:57
|
Revision: 79 http://trivial.svn.sourceforge.net/trivial/?rev=79&view=rev Author: jlgeering Date: 2007-03-04 08:26:57 -0800 (Sun, 04 Mar 2007) Log Message: ----------- More logging Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/ClipboardReaderImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/ServiceResolver.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/ClipboardReaderImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/ClipboardReaderImpl.java 2007-03-04 16:20:17 UTC (rev 78) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/ClipboardReaderImpl.java 2007-03-04 16:26:57 UTC (rev 79) @@ -10,7 +10,7 @@ public class ClipboardReaderImpl implements ClipboardReader, Runnable { - private Log log = LogFactory.getLog(ClipboardReaderImpl.class); + private static Log log = LogFactory.getLog(ClipboardReaderImpl.class); private boolean running; private Object stopped = new Object(); Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/ServiceResolver.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/ServiceResolver.java 2007-03-04 16:20:17 UTC (rev 78) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/ServiceResolver.java 2007-03-04 16:26:57 UTC (rev 79) @@ -3,6 +3,9 @@ import java.net.InetAddress; import java.net.UnknownHostException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import net.sf.trivial.easypaste.internal.presence.PeerImpl; import net.sf.trivial.easypaste.internal.presence.AbstractPresenceService; @@ -20,6 +23,8 @@ */ public class ServiceResolver implements ResolveListener { + private static Log log = LogFactory.getLog(ServiceResolver.class); + private DNSSDService resolve; /* @@ -45,15 +50,15 @@ /** method from ResolveListener */ public void serviceResolved (DNSSDService resolver, int flags, int ifIndex, String fullName, String hostName, int port, TXTRecord txtRecord) { - System.out.println ("Presence service resolved: " + fullName + " at " + hostName + ":" + port); + log.debug("Presence service resolved: " + fullName + " at " + hostName + ":" + port); try { // create new Service object - PeerImpl service = new PeerImpl (serviceName, regType, domain, + PeerImpl peerImpl = new PeerImpl (serviceName, regType, domain, InetAddress.getByName(hostName), port); // register service - presenceService.register(service); + presenceService.register(peerImpl); // // print the list of registered services // presenceService.printList(); Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-04 16:20:17 UTC (rev 78) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/ClipboardReaderImpl.java 2007-03-04 16:26:57 UTC (rev 79) @@ -12,7 +12,7 @@ public class ClipboardReaderImpl implements ClipboardReader, Runnable { - private Log log = LogFactory.getLog(ClipboardReaderImpl.class); + private static Log log = LogFactory.getLog(ClipboardReaderImpl.class); private boolean running; private Object stopped = new Object(); Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 16:20:17 UTC (rev 78) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 16:26:57 UTC (rev 79) @@ -7,7 +7,10 @@ import net.sf.trivial.easypaste.presence.Peer; import net.sf.trivial.easypaste.presence.PresenceService; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + /** * Registry for existing services * @@ -15,33 +18,41 @@ */ public abstract class AbstractPresenceService implements PresenceService { + private static Log log = LogFactory.getLog(AbstractPresenceService.class); + + private final int port; + private final String selfName; + + static final String PROTO = "_easypaste._tcp."; + /** service map */ - private final HashMap<String,Peer> services = new HashMap<String,Peer>(); + private final HashMap<String,Peer> peers = new HashMap<String,Peer>(); /** - * Register a service + * Register a peer */ - public synchronized void register (PeerImpl service) { - if (services.containsKey(service.getName()) - || service.getName().equals(serviceName)) return; - System.out.println("Presence service registered new peer : "+service); - - services.put(service.getName(), service); + public synchronized void register (Peer peer) { + if (!selfName.equals(peer.getName()) && !peers.containsKey(peer.getName())) { + log.info("Adding a peer: " + peer.getName()); + peers.put(peer.getName(), peer); + } } /** - * Test if a service is already registered + * Test if a peer is already registered */ public synchronized boolean isRegistered (String name) { - return services.containsKey(name); + return peers.containsKey(name); } /** - * Unregister a service, using its service name + * Unregister a peer, using its name */ public synchronized void unregister (String name) { - if (services.containsKey(name)) - services.remove(name); + if (peers.containsKey(name)) { + peers.remove(name); + log.info("Removing a peer: " + name); + } } /** @@ -49,23 +60,18 @@ */ public synchronized void printList () { System.out.println ("Registered services:"); - for (Iterator it = services.values().iterator(); it.hasNext(); ) { + for (Iterator it = peers.values().iterator(); it.hasNext(); ) { System.out.println ( ((PeerImpl)it.next()).toString() ); } } public Collection<Peer> getPeers() { - return services.values(); + return peers.values(); } - private final int port; - private final String serviceName; - - static final String PROTO = "_easypaste._tcp."; - public AbstractPresenceService(int port, String serviceName) { this.port = port; - this.serviceName = serviceName; + this.selfName = serviceName; } public abstract ServiceBrowser getServiceBrowser(); @@ -73,14 +79,14 @@ public abstract ServiceRegistrer getServiceRegistrer(); public void start() { - System.out.println("Presence service starting"); + log.info("Starting presence service ..."); getServiceBrowser().browse(PROTO); - getServiceRegistrer().register(serviceName, PROTO, port); + getServiceRegistrer().register(selfName, PROTO, port); } public void stop() { - System.out.println("Presence service stopping"); + log.info("Stopping presence service ..."); getServiceBrowser().stop(); getServiceRegistrer().stop(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fte...@us...> - 2007-03-04 16:20:16
|
Revision: 78 http://trivial.svn.sourceforge.net/trivial/?rev=78&view=rev Author: fterrier Date: 2007-03-04 08:20:17 -0800 (Sun, 04 Mar 2007) Log Message: ----------- presence service not working Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-04 15:41:26 UTC (rev 77) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-04 16:20:17 UTC (rev 78) @@ -1,17 +1,23 @@ package net.sf.trivial.easypaste.internal.pi.presence; import java.io.IOException; +import java.net.InetAddress; +import javax.jmdns.JmDNS; + import net.sf.trivial.easypaste.internal.presence.AbstractPresenceService; import net.sf.trivial.easypaste.internal.presence.ServiceBrowser; import net.sf.trivial.easypaste.internal.presence.ServiceRegistrer; public class PresenceServiceImpl extends AbstractPresenceService { + private final JmDNS jmdns; + public PresenceServiceImpl(int port, String serviceName) throws IOException { super(port, serviceName); - this.serviceBrowser = new ServiceBrowserImpl(this); - this.serviceRegistrer = new ServiceRegistrerImpl(); + this.jmdns = createJmDNS(); + this.serviceBrowser = new ServiceBrowserImpl(jmdns,this); + this.serviceRegistrer = new ServiceRegistrerImpl(jmdns); } private final ServiceRegistrerImpl serviceRegistrer; @@ -27,4 +33,8 @@ return serviceRegistrer; } + private JmDNS createJmDNS() throws IOException { + return new JmDNS(InetAddress.getLocalHost()); + } + } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-04 15:41:26 UTC (rev 77) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceBrowserImpl.java 2007-03-04 16:20:17 UTC (rev 78) @@ -1,6 +1,7 @@ package net.sf.trivial.easypaste.internal.pi.presence; import java.io.IOException; +import java.net.InetAddress; import javax.jmdns.JmDNS; import javax.jmdns.ServiceEvent; @@ -29,8 +30,8 @@ null,event.getInfo().getInetAddress(),event.getInfo().getPort())); } - public ServiceBrowserImpl(PresenceServiceImpl presenceService) throws IOException { - this.jmdns = new JmDNS(); + public ServiceBrowserImpl(JmDNS jmdns, PresenceServiceImpl presenceService) { + this.jmdns = jmdns; this.presenceService = presenceService; } @@ -38,13 +39,7 @@ private final JmDNS jmdns; public void browse(String proto) { - try { - JmDNS jmdns = new JmDNS(); - jmdns.addServiceListener(proto, this); - } - catch (IOException e) { - // TODO - } + jmdns.addServiceListener(proto, this); } public void stop() { Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-04 15:41:26 UTC (rev 77) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/ServiceRegistrerImpl.java 2007-03-04 16:20:17 UTC (rev 78) @@ -1,26 +1,33 @@ package net.sf.trivial.easypaste.internal.pi.presence; import java.io.IOException; +import java.net.InetAddress; import javax.jmdns.JmDNS; import javax.jmdns.ServiceInfo; +import net.sf.trivial.easypaste.launcher.EasyStart; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + + public class ServiceRegistrerImpl implements net.sf.trivial.easypaste.internal.presence.ServiceRegistrer { - public ServiceRegistrerImpl() throws IOException { - this.jmdns = new JmDNS(); + private static Log log = LogFactory.getLog(ServiceRegistrerImpl.class); + + public ServiceRegistrerImpl(JmDNS jmdns) { + this.jmdns = jmdns; } private final JmDNS jmdns; public void register(String name, String proto, int port) { try { - JmDNS jmdns = new JmDNS(); - ServiceInfo info = new ServiceInfo(proto, name, 1268, 0, 0, ""); + ServiceInfo info = new ServiceInfo(proto, name, port, ""); jmdns.registerService(info); } catch (IOException e) { - e.printStackTrace(); + log.error("Could not register",e); } } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 15:41:26 UTC (rev 77) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 16:20:17 UTC (rev 78) @@ -61,8 +61,7 @@ private final int port; private final String serviceName; - static final int WAIT = 15000; - static final String PROTO = "_easypaste._tcp"; + static final String PROTO = "_easypaste._tcp."; public AbstractPresenceService(int port, String serviceName) { this.port = port; Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 15:41:26 UTC (rev 77) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 16:20:17 UTC (rev 78) @@ -10,6 +10,7 @@ public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { String os = System.getProperty("os.name"); log.debug("os.name=" + os); + os = "Linux"; if ("Mac OS X".equals(os)) { log.info("Detected Mac OS X"); Class.forName("net.sf.trivial.easypaste.launcher.mac.EasyController").newInstance(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-04 15:41:26
|
Revision: 77 http://trivial.svn.sourceforge.net/trivial/?rev=77&view=rev Author: jlgeering Date: 2007-03-04 07:41:26 -0800 (Sun, 04 Mar 2007) Log Message: ----------- PI EasyStart Added Paths: ----------- trunk/eclipse/easypaste/launch/EasyStartPI.launch trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyStart.java Added: trunk/eclipse/easypaste/launch/EasyStartPI.launch =================================================================== --- trunk/eclipse/easypaste/launch/EasyStartPI.launch (rev 0) +++ trunk/eclipse/easypaste/launch/EasyStartPI.launch 2007-03-04 15:41:26 UTC (rev 77) @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> +<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.sf.trivial.easypaste.launcher.pi.EasyStart"/> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> +<listEntry value="4"/> +</listAttribute> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="easypaste"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/> +<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> +<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> +<listEntry value="/easypaste"/> +</listAttribute> +<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> +</launchConfiguration> Added: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyStart.java (rev 0) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyStart.java 2007-03-04 15:41:26 UTC (rev 77) @@ -0,0 +1,14 @@ +package net.sf.trivial.easypaste.launcher.pi; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +public class EasyStart { + + private static Log log = LogFactory.getLog(EasyStart.class); + + public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { + log.info("Starting platform independent EasyPaste"); + Class.forName("net.sf.trivial.easypaste.launcher.pi.EasyController").newInstance(); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-04 15:16:45
|
Revision: 76 http://trivial.svn.sourceforge.net/trivial/?rev=76&view=rev Author: jlgeering Date: 2007-03-04 07:16:46 -0800 (Sun, 04 Mar 2007) Log Message: ----------- EasyStart launcher Added Paths: ----------- trunk/eclipse/easypaste/launch/EasyStart.launch Added: trunk/eclipse/easypaste/launch/EasyStart.launch =================================================================== --- trunk/eclipse/easypaste/launch/EasyStart.launch (rev 0) +++ trunk/eclipse/easypaste/launch/EasyStart.launch 2007-03-04 15:16:46 UTC (rev 76) @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> +<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.sf.trivial.easypaste.launcher.EasyStart"/> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> +<listEntry value="4"/> +</listAttribute> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="easypaste"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/> +<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> +<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> +<listEntry value="/easypaste"/> +</listAttribute> +<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> +</launchConfiguration> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fte...@us...> - 2007-03-04 15:16:30
|
Revision: 75 http://trivial.svn.sourceforge.net/trivial/?rev=75&view=rev Author: fterrier Date: 2007-03-04 07:16:30 -0800 (Sun, 04 Mar 2007) Log Message: ----------- corrected bug - reverted classpath Modified Paths: -------------- trunk/eclipse/easypaste/.classpath trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/PresenceServiceImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java Added Paths: ----------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/ClipboardContent.java Modified: trunk/eclipse/easypaste/.classpath =================================================================== --- trunk/eclipse/easypaste/.classpath 2007-03-04 15:12:34 UTC (rev 74) +++ trunk/eclipse/easypaste/.classpath 2007-03-04 15:16:30 UTC (rev 75) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry excluding="net/sf/trivial/easypaste/internal/mac/**/*" kind="src" path="src"/> + <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry combineaccessrules="false" kind="src" path="/bonjour"/> <classpathentry combineaccessrules="false" kind="src" path="/utils"/> Added: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/ClipboardContent.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/ClipboardContent.java (rev 0) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/ClipboardContent.java 2007-03-04 15:16:30 UTC (rev 75) @@ -0,0 +1,5 @@ +package net.sf.trivial.easypaste; + +public class ClipboardContent { + +} Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/PresenceServiceImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/PresenceServiceImpl.java 2007-03-04 15:12:34 UTC (rev 74) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/mac/presence/PresenceServiceImpl.java 2007-03-04 15:16:30 UTC (rev 75) @@ -1,6 +1,7 @@ package net.sf.trivial.easypaste.internal.mac.presence; import net.sf.trivial.easypaste.internal.presence.AbstractPresenceService; +import net.sf.trivial.easypaste.internal.presence.ServiceRegistrer; public class PresenceServiceImpl extends AbstractPresenceService { @@ -19,7 +20,7 @@ } @Override - public ServiceRegistrerImpl getServiceRegistrer() { + public ServiceRegistrer getServiceRegistrer() { return serviceRegistrer; } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-04 15:12:34 UTC (rev 74) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/pi/presence/PresenceServiceImpl.java 2007-03-04 15:16:30 UTC (rev 75) @@ -4,6 +4,7 @@ import net.sf.trivial.easypaste.internal.presence.AbstractPresenceService; import net.sf.trivial.easypaste.internal.presence.ServiceBrowser; +import net.sf.trivial.easypaste.internal.presence.ServiceRegistrer; public class PresenceServiceImpl extends AbstractPresenceService { @@ -22,7 +23,7 @@ } @Override - public ServiceRegistrerImpl getServiceRegistrer() { + public ServiceRegistrer getServiceRegistrer() { return serviceRegistrer; } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 15:12:34 UTC (rev 74) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/internal/presence/AbstractPresenceService.java 2007-03-04 15:16:30 UTC (rev 75) @@ -71,7 +71,7 @@ public abstract ServiceBrowser getServiceBrowser(); - public abstract ServiceRegistrerImpl getServiceRegistrer(); + public abstract ServiceRegistrer getServiceRegistrer(); public void start() { System.out.println("Presence service starting"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jlg...@us...> - 2007-03-04 15:12:46
|
Revision: 74 http://trivial.svn.sourceforge.net/trivial/?rev=74&view=rev Author: jlgeering Date: 2007-03-04 07:12:34 -0800 (Sun, 04 Mar 2007) Log Message: ----------- Mac and PI EasyStart Modified Paths: -------------- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 15:01:40 UTC (rev 73) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/EasyStart.java 2007-03-04 15:12:34 UTC (rev 74) @@ -4,14 +4,23 @@ import org.apache.commons.logging.LogFactory; public class EasyStart { - + private static Log log = LogFactory.getLog(EasyStart.class); - public static void main(String[] args) { + public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { String os = System.getProperty("os.name"); log.debug("os.name=" + os); if ("Mac OS X".equals(os)) { log.info("Detected Mac OS X"); + Class.forName("net.sf.trivial.easypaste.launcher.mac.EasyController").newInstance(); } + else if ("Linux".equals(os)) { + log.info("Detected Linux"); + Class.forName("net.sf.trivial.easypaste.launcher.pi.EasyController").newInstance(); + } + else { + log.warn("Unknown OS"); + // TODO use pi ? + } } } Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java 2007-03-04 15:01:40 UTC (rev 73) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/mac/EasyController.java 2007-03-04 15:12:34 UTC (rev 74) @@ -19,7 +19,7 @@ private static final int PORT = 5555; private static String name; - public static void main(String[] args) { + public EasyController() { try { name = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e1) { Modified: trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java =================================================================== --- trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java 2007-03-04 15:01:40 UTC (rev 73) +++ trunk/eclipse/easypaste/src/net/sf/trivial/easypaste/launcher/pi/EasyController.java 2007-03-04 15:12:34 UTC (rev 74) @@ -6,7 +6,6 @@ import net.sf.trivial.easypaste.ClipboardReader; import net.sf.trivial.easypaste.ClipboardWriter; import net.sf.trivial.easypaste.DistributedClipboard; -import net.sf.trivial.easypaste.NotificationService; import net.sf.trivial.easypaste.internal.DistributedClipboardImpl; import net.sf.trivial.easypaste.internal.pi.ClipboardReaderImpl; import net.sf.trivial.easypaste.internal.pi.ClipboardWriterImpl; @@ -19,7 +18,7 @@ private static final int PORT = 5555; private static String name; - public static void main(String[] args) { + public EasyController() { try { name = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e1) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |