diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-04 21:38:50 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-04 22:03:40 +0200 |
commit | ae82027a9bd4e75582f9499d4006b18c29a4129c (patch) | |
tree | 92d23012158647d31fbdc0e6cdae7854ee773cbc /src/main/scala/Server/constants.scala | |
download | scalevalapokalypsi-ae82027a9bd4e75582f9499d4006b18c29a4129c.tar.gz scalevalapokalypsi-ae82027a9bd4e75582f9499d4006b18c29a4129c.zip |
Added basic TCP networking for the server.
The client's networking is still very experimental and
the actual protocol is not yet specified for either side.
Diffstat (limited to 'src/main/scala/Server/constants.scala')
-rw-r--r-- | src/main/scala/Server/constants.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/scala/Server/constants.scala b/src/main/scala/Server/constants.scala new file mode 100644 index 0000000..4260a60 --- /dev/null +++ b/src/main/scala/Server/constants.scala @@ -0,0 +1,6 @@ + +package o1game.constants + +val MAX_MSG_SIZE = 1024 // bytes +val LF: Byte = 10 +val POLL_INTERVAL = 100 // millisec. |