Skip to content

Super Timecode Converter V1.9.4

Choose a tag to compare

@fiverecords fiverecords released this 19 Apr 09:19
· 78 commits to main since this release
275dd0d

dbserver connection handling

Two small changes to how STC manages its TCP connections to the CDJ dbserver ports (1051 on NXS2, 1052 on CDJ-3000).

1. Cache discovered db port per player

The dbserver port for each CDJ is now cached after the first successful discovery on port 12523. Previously every reconnect repeated that discovery handshake before opening the real socket. The port doesn't change for a given CDJ, so this was wasted TCP traffic. The cache is cleared if a player disconnects via invalidatePlayer.

2. Polite dbserver teardown on close

When STC closes its connection to a CDJ's dbserver, it now sends the protocol-level teardown message (magic TxID 0xfffffffe, type 0x0100, zero arguments) before closing the TCP socket. The CDJ then closes the connection from its side.

Files Changed

  • DbServerClient.h — Cached db port per player IP; polite dbserver teardown before socket close
  • Main.cpp — Version bump to 1.9.4
  • README.md — Version bump