@InterfaceAudience.Public
public class FourLetterWordMain
extends java.lang.Object
| Constructor and Description |
|---|
FourLetterWordMain() |
| Modifier and Type | Method and 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