be.ac.ulg.montefiore.run.totem.socketInterface
Class SocketClient

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.socketInterface.SocketClient

public class SocketClient
extends java.lang.Object

Client to use with the socket interface. It sends a scenario file to the socket interface of the toolbox on the specified host and port. It also creates a receiver thread to receive the responses from the server. Scenario events are sent one by one, on a single line. A configurable delay period is observed between each event sending.

Creation date: 25 sept. 2006

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
SocketClient(java.lang.String host, int port, float delay)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void sendScenarioSocket(java.lang.String filename)
          Send a scenario file to the toolbox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketClient

public SocketClient(java.lang.String host,
                    int port,
                    float delay)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)

sendScenarioSocket

public void sendScenarioSocket(java.lang.String filename)
Send a scenario file to the toolbox

Parameters:
filename -


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.