com.strangeberry.jmdns.tools
Class Responder
java.lang.Object
com.strangeberry.jmdns.tools.Responder
public class Responder
- extends java.lang.Object
A sample JmDNS responder that reads a set of rendezvous service definitions from a file and registers them with rendezvous. It uses the same file format as Apple's responder. Each record consists of 4 lines: name, type, text, port. Empty lines and
lines starting with # between records are ignored.
Constructor Summary |
Responder(JmDNS jmdns,
java.lang.String file)
Constructor. |
Method Summary |
static void |
main(java.lang.String[] argv)
Create a responder. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Responder
public Responder(JmDNS jmdns,
java.lang.String file)
throws java.io.IOException
- Constructor.
- Parameters:
jmdns
- file
-
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] argv)
throws java.io.IOException
- Create a responder.
- Parameters:
argv
-
- Throws:
java.io.IOException