XTSERV(6)

๐Ÿ“ฆ version 1.15, in nixos 26.05, nixpkgs unstable

๐Ÿ’… XTSERV(6) โ€” the games manual glow-up ๐ŸŽฎ

ok so real talk, this is xtserv, aka the server page from the Games Manual โ€” the little engine behind your synchronous multiplayer tetris era. buckle up bestie ๐Ÿซถ


โœจ NAME โœจ

xtserv โ€” the server for a synchronous multiplayer tetris ๐ŸŒˆ

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

xtserv [ -help ] [ -once ] [ -daemon ] [ -v ] [ -norestart ] [
-nospeedup ] [ -p port ]

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -daemon โ€” makes xtserv ghost its controlling terminal entirely: it detaches, forks twice, closes all its file descriptors, and chdirs to /. lowkey iconic for running xtserv over rsh or launching it from scripts ๐Ÿ‘‘
  • -help โ€” prints a lil summary of every command-line option xtserv actually recognizes. your cheat sheet fr ๐Ÿ’–
  • -once โ€” with this one, xtserv dips out (exits) as soon as every client has disconnected. bye bestie โœŒ๏ธ
  • -v โ€” verbose mode, aka main character energy for the logs ๐Ÿ’… xtserv will print info about clients connecting, disconnecting, starting games, sending each other lines, losing, etc. it's giving narrator.
  • -norestart โ€” with this, xtserv will not auto-start a new game when all players but one have lost. the players gotta press the 'play' button themselves to get things going again ๐Ÿ™ˆ
  • -nospeedup โ€” with this, xtserv will not automatically crank up the game speed every time some user's number of lines goes over 10 x the current level. no surprise speed jumps, no cap ๐Ÿ“
  • -p โ€” specifies a port for xtserv to use. the default is 19503. remember the number, iykyk ๐Ÿ”ฅ

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

xtserv is the server for the synchronous multi-user version of Tetris, xtris. periodt ๐ŸŽฏ

So what does it actually do? xtserv listens for connections on a TCP port, keeps an internal list of connected clients, and broadcasts information among those clients โ€” all to manage starting the game, setting the level and mode, and letting everyone see each other's screens ๐Ÿ‘€โœจ

xtserv gets started automatically by xtris, with the option -once, if xtris doesn't find an xtserv running on localhost and no server host has been specified. it just appears, like magic ๐Ÿงš

xtserv will automatically restart a game when the one-but-last player has lost โ€” unless it was started with the option -norestart. That said, it will not automatically restart a game if the user is playing alone. solo vibes = manual vibes ๐Ÿซถ

Also, xtserv will drop all bots when there are only bots left in the game. sorry bots, scene's over ๐Ÿ’€

The server can handle clients exiting, being killed, or losing the connection โ€” even right in the middle of a game. resilient queen ๐ŸŒธ

โš ๏ธ killing an xtserv will cause all connected clients to exit. like, everyone. the whole party. ๐Ÿ˜ญ

๐Ÿ” SEE ALSO ๐Ÿ”

xtris(6), xtbot(6) โ€” go read those next, bestie ๐Ÿ“š

๐Ÿ› BUGS ๐Ÿ›

None known! ngl that's a flex. please report any bugs to the author ๐Ÿ’Œ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

xtserv was written by Roger Espel Llima <roger.espel.llima@pobox.com>. absolute legend โญ


and that's the whole page, mwah ๐Ÿ’‹ โ€” written by Roger Espel Llima, dated Oct 13, 1996, for XTSERV(6). stan a 90s Unix icon ๐ŸŽ€๐Ÿ’–

๐Ÿ“ฆ where this page comes from