java.lang.Object
tech.kwik.sample.echo.EchoServer
A sample server 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 server's main method requires three arguments:
- certificate file (can be self-signed)
- key file with the private key of the certificate
- port number
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EchoServer
public EchoServer()
-
-
Method Details
-
main
- Throws:
Exception
-