net.sf.borg.common
Class SocketClient
java.lang.Object
net.sf.borg.common.SocketClient
public class SocketClient
- extends Object
SocketClient sends text messages over a socket
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketClient
public SocketClient()
sendMsg
public static String sendMsg(String host,
int port,
String msg)
throws IOException
- Send a msg.
- Parameters:
host - the hostport - the portmsg - 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