java.lang.Object
net.luminis.quic.sample.echo.SimpleEchoClient
A sample echo client that runs a very simple echo protocol on top of QUIC.
The echo protocol is a request-response protocol, where the client sends one request on a new stream and the server
responds by echoing the data from the request in a response on the same stream. After sending the response, the
stream is closed.
The main method requires one argument:
- port number of the server (server is assumed to run on localhost)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleEchoClient
public SimpleEchoClient(int serverPort)
-
-
Method Details
-
main
- Throws:
IOException
-
run
- Throws:
IOException
-