|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object examples.echo
public final class echo
This is an example program demonstrating how to use the EchoTCPClient and EchoUDPClient classes. This program connects to the default echo service port of a specified server, then reads lines from standard input, writing them to the echo server, and then printing the echo. The default is to use the TCP port. Use the -udp flag to use the UDP port.
Usage: echo [-udp]
Constructor Summary
echo()
Method Summary
static void
echoTCP(String host)
static void
echoUDP(String host)
static void
main(String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
echo
public echo()
Method Detail
echoTCP
public static final void echoTCP(String host)
throws IOException
IOException
echoUDP
public static final void echoUDP(String host)
throws IOException
IOException
main
public static final void main(String[] args)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 1997-2010 The Apache Software Foundation. All Rights Reserved.