public class FourLetterWordMain extends Object
| Constructor and Description | 
|---|
| FourLetterWordMain() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | main(String[] args) | 
| static String | send4LetterWord(String host,
               int port,
               String cmd)Send the 4letterword | 
| static String | send4LetterWord(String host,
               int port,
               String cmd,
               int timeout)Send the 4letterword | 
public static String send4LetterWord(String host, int port, String cmd) throws IOException
host - the destination hostport - the destination portcmd - the 4letterwordIOExceptionpublic static String send4LetterWord(String host, int port, String cmd, int timeout) throws IOException
host - the destination hostport - the destination portcmd - the 4letterwordtimeout - in milliseconds, maximum time to wait while connecting/reading dataIOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 The Apache Software Foundation