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 December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae