edu.rit.m2mp
Class Daemon

java.lang.Object
  extended by edu.rit.m2mp.Daemon

public class Daemon
extends Object

Class Daemon is the main program for the M2MP Daemon process.

The M2MP Layer can be configured two ways, depending on whether there is one or more than one M2MP client process running on the device. These two cases are distinguished by the value of the edu.rit.m2mp.daemon.port property in the M2MP properties file (see class M2MPProperties).

If there is only one M2MP client process running on the host, then a separate M2MP Daemon process is not needed, and the edu.rit.m2mp.daemon.port property is set to 0. In this case the M2MP Layer in the client process communicates directly with the external network using the channel defined by the edu.rit.m2mp.channel.class property.

If there is more than one M2MP client process running on the host, then a separate M2MP Daemon process must be running, and the edu.rit.m2mp.daemon.port property is set to the local port number on which the M2MP Daemon process is listening for connections. In this case the M2MP Layer in the client process communicates with the M2MP Daemon process, and the M2MP Daemon process communicates in turn with the external network using the channel defined by the edu.rit.m2mp.channel.class property.

Usage: java edu.rit.m2mp.Daemon


Method Summary
static void main(String[] args)
          Main program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Main program.



Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.