Update some documentation

This commit is contained in:
Přemysl Eric Janouch 2022-09-16 03:52:28 +02:00
parent 430968e5d5
commit b55bae50df
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 7 additions and 6 deletions

View File

@ -130,7 +130,8 @@ example, that would be http://localhost:8080[]:
$ ../xP 127.0.0.1:8080 127.0.0.1:9000 $ ../xP 127.0.0.1:8080 127.0.0.1:9000
For remote use, it's recommended to put 'xP' behind a reverse proxy, with TLS, For remote use, it's recommended to put 'xP' behind a reverse proxy, with TLS,
and some form of HTTP authentication. and some form of HTTP authentication. Pass the external URL of the WebSocket
endpoint as the third command line argument in this case.
Client Certificates Client Certificates
------------------- -------------------

View File

@ -9,7 +9,7 @@
# Native types: bool, u{8,16,32,64}, i{8,16,32,64}, string # Native types: bool, u{8,16,32,64}, i{8,16,32,64}, string
# #
# Don't define any new types, unless you hate yourself, then it's okay to do so. # Don't define any new types, unless you hate yourself, then it's okay to do so.
# Both backends are a pain in the arse, for different reasons. # Backends tend to be a pain in the arse, for different reasons.
# #
# All numbers are encoded in big-endian byte order. # All numbers are encoded in big-endian byte order.
# Booleans are one byte each. # Booleans are one byte each.
@ -18,11 +18,11 @@
# Enumeration values automatically start at 1, and are encoded as i8. # Enumeration values automatically start at 1, and are encoded as i8.
# Any struct or union field may be a variable-length array. # Any struct or union field may be a variable-length array.
# #
# Message framing is done externally, but also happens to prefix u32 lengths. # Message framing is done externally, but also happens to prefix u32 lengths,
# unless this role is already filled by, e.g., WebSocket.
# #
# Usage: env LC_ALL=C awk -v prefix=Relay \ # Usage: env LC_ALL=C awk -f xC-gen-proto.awk -f xC-gen-proto-{c,go,js}.awk \
# -f xC-gen-proto.awk < xC-proto \ # xC-proto > xC-proto.{c,go,js} | {clang-format,gofmt,...}
# -f xC-gen-proto-{c,go}.awk > xC-proto.{c,go} | {clang-format,gofmt}
# --- Utilities ---------------------------------------------------------------- # --- Utilities ----------------------------------------------------------------