A fork of pyscrds
, mainly to add support for Squad's RCON servers, which use a slightly modified RCON protocol (handles multi-packet responses differently and also sends "chat" packets as a stream as they come in).
NOTE: The current (hacky) implementation passively listens to chat, even in between requests/responses. The chat messages are "flushed" after any attempt to read from the RCON socket (such as sending a command like ShowNextMap
). Feel free to change it (e.g. by using non-blocking sockets and multiple threads), but it was just too messy for my taste.
The original pysrcds is distributed under the MIT license. This fork uses the same license. See LICENSE.md for more information.