Open xale opened 14 years ago
That is, providing I can find some documentation...
(Or Wireshark GTetrinet... ew.)
You might want to look at the TspecProtocol and TSpecListener classes in Jetrix. The protocol is similar to Tetrinet, with some additional commands and a different handshake.
The TSpec port is 31458. There are 2 possible handshakes, either the same as Tetrinet (tetrix mode), or a nickname followed by an encoded password (tserv mode). Jetrix doesn't read and check the password, it's always open to spectators.
Depending on the mode activated the messages are different.
Tetrix mode:
TServ mode:
Messages shared by both modes:
Thank you! That will make a great reference.
I haven't figured the encoding used for the password in the tserv mode, I guess it's similar to the one used for the tetrinet handshake. I suggest you implement the tetrix mode since it seems to be the most widely supported. It works on the servers derived from tetrinetx, Tetridome, JTS and Jetrix. Servers based on PTNS do not support TSpec.
Adding support for the TetriNET spectator protocol, TSpec, in a future release shouldn't be too difficult.