Marek Küthe eeba1bc4d1 fixes a few bugs and improve style | hai 1 ano | |
---|---|---|
bin | hai 1 ano | |
lib | hai 1 ano | |
.gitignore | hai 1 ano | |
.rubocop.yml | hai 1 ano | |
LICENSE | hai 1 ano | |
README.md | hai 1 ano | |
echo-server.gemspec | hai 1 ano |
This is a simple TCP/TLS echo server written in Ruby.
This echo server requires version 1.3.0 of eventmachine, which can be obtained from GitHub. Unfortunately it is not currently published on RubyGems.
$echo-server --help
Usage: echo-server [options]
--help Prints this help
-t, --timeout TIMEOUT Sets the in seconds timeout after the TCP connection is terminated. (Default is 60)
--tls TLS_VERSION Sets the SSL versions supported by the server. (Default is TLSv1_2 and TLSv1_3)
--ciphers CIPHERS Sets the ciphers supported by the server.
--curves CURVES Sets the ecdh curves supported by the server.
--priv PRIVATE_KEY_FILE Sets the path to the server's private key.
--cert CERT_CHAIN Sets the path to the server's public certificate.
-h, --host HOST Sets the host on which the server binds. (By default ::)
-p, --port PORT Sets the port on which the server binds. (By default 7, RFC862)
--fatal Log Fatal and Unknown Events
--error Log Error, Fatal and Unknown Events
--warn Log Warn, Error, Fatal and Unknown Events
--info Log Info, Warn, Error, Fatal and Unknown Events
--debug Log Debug, Info, Warn, Error, Fatal and Unknown Events