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 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