public class HelloWorldClient extends Object
HelloWorldServer
.Constructor and Description |
---|
HelloWorldClient(String host,
int port)
Construct client connecting to HelloWorld server at
host:port . |
Modifier and Type | Method and Description |
---|---|
void |
greet(String name)
Say hello to server.
|
static void |
main(String[] args)
Greet server.
|
void |
shutdown() |
public HelloWorldClient(String host, int port)
host:port
.public void shutdown() throws InterruptedException
InterruptedException
public void greet(String name)