fr.ove.openmath.mfd2
Class Mfd2

java.lang.Object
  extended byfr.ove.openmath.mfd2.Mfd2

public final class Mfd2
extends java.lang.Object


Constructor Summary
Mfd2()
          No-args constructor.
Mfd2(java.lang.String hostName, int port)
          Constructor.
 
Method Summary
 java.net.Socket getSocket()
           
static void main(java.lang.String[] args)
          Entry point for JVM.
static void usage()
          Hints how to use the damn thing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mfd2

public Mfd2()
     throws java.io.IOException
No-args constructor.


Mfd2

public Mfd2(java.lang.String hostName,
            int port)
     throws java.io.IOException
Constructor. Instantiates the OM appletication and the appropriate communication module. Registers each as listening to the other.

Parameters:
hostName - host on which the server runs
port - on which the server listens
See Also:
fr.essi.sander.om.clientserver.CommFactory
Method Detail

getSocket

public java.net.Socket getSocket()

main

public static void main(java.lang.String[] args)
Entry point for JVM. This should be run
  1. first on the server side, e.g.,
    java Mfd2 ServerSideSocketeer
  2. then on the client side, e.g.,
    java Mfd2 ClientSideSocketeer

Parameters:
args - name of communication module to use
See Also:
fr.essi.sander.om.clientserver.OMCommFactory

usage

public static void usage()
Hints how to use the damn thing.



Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.