| ParlorNet Turn-based game server for any computer, old or new | |
| Clients | Protocols | Browsers | Telnet programs | Docs | Source |
Status: research notes, 2026-11-21. Every fact carries a source tag like [S1] (list in section a). Anything not backed by a source is marked UNVERIFIED.
Method: reading the distributed source code (C for xfibs, Tcl/Expect for xibc, an AmigaDOS script for Connect_FIBS). Nothing was compiled or run, and no server was contacted. TkFibs (Keith Vetter, 1994) was not found in the archives searched (discmaster.textfiles.com, Aminet). It is listed as missing.
| Item | xfibs 0.8 | xibc 0.31 | Connect_FIBS |
|---|---|---|---|
| Transport | BSD socket, connect(). Optional SOCKS Rconnect [S1] | spawn telnet <host> 4321 under Expect [S2] | AmigaDOS telnet fibs.com 4321 [S3] |
| Host / port | .xfibsrc keywords Host and Port. Default host fraggel65.mdstud.chalmers.se (config.h). Port 4321 in the sample rc file [S1] | hard-coded in proc connect | hard-coded |
| Client line end | \r\n for every command, login name and password [S1] | \n (telnet client adds its own line ending; Unix telnet sends CR LF or CR NUL in NVT mode, UNVERIFIED which) [S2] | terminal |
| Server line end | lines split only at \r\n [S1] | every pattern ends in \r\n [S2] | terminal |
| Telnet options | none handled. A raw IAC byte would end up in the text [S1] | handled by the Unix telnet program [S2] | handled by the Amiga telnet program |
xfibs [S1]: on a line starting login: it sends the configured user name plus \r\n. On a line starting password: (only 6 characters compared, passwo) it sends the password plus \r\n. Without a configured name the user types it. The client counts as logged in at the first input that ends in > . It then queues the on_login commands from .xfibsrc (none by default; users add set boardstyle 3 there, as backgammon-network.md [S7] notes). Prompts before login can arrive without CR LF; login: is matched on the partial buffer.
xibc [S2]: expect loop with ^login: $ (exact, trailing space, nothing after it), ^password:, server lines (...)\r\n, and ^> as the logged-in marker. After the first > it sends set boardstyle 3. Guests register by hand ("Login as "guest" if you are new").
xfibs (parseInput, callbacks.c) [S1]. Each line first has a leading > removed, then:
| Pattern | Match | Effect |
|---|---|---|
| line ends in > | suffix | prompt: logged in, ready to send queued commands. If the line also contains away, away mode |
| board: | prefix, the line needs at least 52 colons | board update. A shorter one is held until the rest arrives |
| login: / password: | prefix | login (above) |
| Welcome back | prefix, case-insensitive | away mode off |
| <name> roll(s) <d1> <d2> | sscanf("%s%s%i%s%i") = 5 fields, word 2 rolls or roll | dice |
| <name> rolled <d1>, <name2> rolled <d2> | sscanf 7 fields, word 2 rolled | opening roll (You rolled 6, bob rolled 2) |
| Please move <n> | first two words, then a number | moves to make |
| It's your turn to move | prefix, case-insensitive | two moves (opening) |
| contains double. Please wait or doubles. Type | substring | double offered (name = first word) |
| contains gives up. | substring | double rejected |
| contains accept the double / accepts the double | substring | double accepted |
| contains wants to resign | substring | resign offer dialog |
| contains has joined you, or prefix You're now watching | client sends board | |
| It's your turn. | prefix, case-insensitive | roll / double popup |
| Type 'join' if you want | prefix | next-game popup (join then board) |
| Type 'join <name>' ... | words 1-3 | invitation: remembers <name>. The popup sends join <name> and board |
| <name> shouts: | word 2 | gag-list filter only |
Commands sent [S1]: move <a>-<b> <c>-<d> ... (bar moves first; bar-, -off spelled out, e.g. move bar-22 13-11), roll, double, accept, reject, join [name], leave, board, bye, and anything from the configurable menus (default .xfibsrc: who ready, show games, show watchers, show saved, ratings, toggle ready|double|silent|notify|report|greedy).
xibc (proc parse, main) [S2]. $NAME is [a-zA-Z_<>]+, $DIGIT is [0-9]. All patterns are anchored at line start. Most require a terminating \r\n:
^\a### ATTENTION ### The server will shut down in 1 minute\.\r\n ^Starting a new game with NAME\.\r\n ^(It's your turn\. Please roll or double)\.?\r\n (client auto-sends "r" when Autoroll is on) ^It's your turn to move\.\r\n ^It's your turn to roll or double\.\r\n ^NAME makes the first move\.\r\n ^(You are now playing with NAME\.)<space> ^(NAME has joined you\.)<space> ^(Your running match was loaded.)\r\n (client sends "b") ^((NAME) and (NAME) are resuming their ...)\r\n (sends "b" if watching one of them) ^(NAME wins? the D+ point match D+-D+ \.)\r\n (note the space before the final '.') ^(\*\* Please don't give more than ...)\r\n ^(\*\* You have to remove pieces from the bar in your first move\.)\r\n ^(\*\* You can't move ...)\r\n ^You're now watching (NAME). (sends "b") ^(NAME wants to resign\. You will win D+ points?\. Type 'accept' or 'reject'\.)\r\n ^(You reject\. The game continues\.)\r\n ^Type 'join' if you want to play the next game, type 'leave' if you don't\.\r\n ^(NAME) doubles?\. ^((NAME) accepts? the double.) ^ The cube shows (D+)\.\r\n (the rest of the accept line, leading space) ^The only possible move is (...) \. ^(NAME) moves ([^.]+) \.? ?\r\n (opponent's move list, e.g. "bob moves 1-5 12-16 .") ^(NAME can't move.)\r\n ^board:(...)\r\n ^You roll (D) and (D)\.\r\n ^Please move (D) pieces?\.\r\n ^(NAME) rolls (D) and (D)\.\r\n ^> ^\r\n ^(...)\r\n (anything else: shown as text)
Two details matter for the adapter. X accepts the double. The cube shows 2. must be one line: xibc consumes the first part, then expects The cube shows N. (leading space) as the remainder. And X moves 13-7 8-7 . keeps FIBS's space before the final full stop [S2].
Commands sent by xibc [S2]: r / roll, double, b (board), accept, reject, join, leave, toggle ready|automove|double, set boardstyle 3, moves composed by proc move, plus the typed command line.
S: login: (prompt, no newline; xibc needs exactly "login: ") C: alice S: password: (lower case, trailing space, as for FIBS/W) C: secret1 S: <welcome lines>\r\n S: > (prompt; xfibs/xibc now consider the session up) C: set boardstyle 3 S: Value of 'boardstyle' set to 3.\r\n (FIBS/W needs "Value of"; see bg-client-fibsw.md) S: > ... S: bob rolls 5 and 4.\r\n S: board:You:bob:...\r\n S: bob moves 1-5 12-16 .\r\n S: board:You:bob:...\r\n S: It's your turn. Please roll or double\r\n S: > (xfibs parses the whole burst only now)
Rules for the adapter's telnet mode, from the code above [S1][S2]:
Yes, the FIBS adapter's telnet mode covers them. xfibs needs only a Host/Port line in ~/.xfibsrc. xibc needs one edited line in its script, or an equivalent wrapper. Connect_FIBS needs its one line edited. None needs ParlorNet-specific code beyond prompt discipline (section e). Telnet-mode sessions (two-step login) get prompts. connect-style sessions (MacFIBS) get none.
From docs/research/x11-clients.md (sources there):
| These pages cover every ParlorNet server. | Source code | ParlorNet is free software. |