net.sf.borg.common
Class SocketClient

java.lang.Object
  extended by net.sf.borg.common.SocketClient

public class SocketClient
extends Object

SocketClient sends text messages over a socket


Constructor Summary
SocketClient()
           
 
Method Summary
static String sendMsg(String host, int port, String msg)
          Send a msg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketClient

public SocketClient()
Method Detail

sendMsg

public static String sendMsg(String host,
                             int port,
                             String msg)
                      throws IOException
Send a msg.

Parameters:
host - the host
port - the port
msg - the msg
Returns:
the response string
Throws:
IOException - Signals that an I/O exception has occurred.


Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic