@Public public class FourLetterWordMain extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.apache.log4j.Logger |
LOG |
| Constructor | Description |
|---|---|
FourLetterWordMain() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
|
static java.lang.String |
send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd) |
Send the 4letterword
|
static java.lang.String |
send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
int timeout) |
Send the 4letterword
|
public static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd)
throws java.io.IOException
host - the destination hostport - the destination portcmd - the 4letterwordjava.io.IOExceptionpublic static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
int timeout)
throws java.io.IOException
host - the destination hostport - the destination portcmd - the 4letterwordtimeout - in milliseconds, maximum time to wait while connecting/reading datajava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018 The Apache Software Foundation