1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-11 00:33:15 +02:00
Commit Graph

70 Commits

Author SHA1 Message Date
Anthony Birkett 0e4d7d4a6b Bring in stricter CS Fixer rules. 2021-05-31 13:42:44 +01:00
Anthony Birkett 48b89017c4 Psalm fixes around resource handling. 2021-05-31 13:05:53 +01:00
Anthony Birkett efa37503bf PHPStan max level (improved error handling). 2021-05-31 12:24:57 +01:00
Anthony Birkett d9bab8aa25 Remove engine from the Sockets.
Docblock changes.
Reorder methods to be logical.
2021-05-31 11:52:18 +01:00
Anthony Birkett b01c1f643f Split up Socket and Rcon classes to be engine specific extensions. 2021-05-31 11:12:21 +01:00
Anthony Birkett a2f7834ef5 Use autoloading. 2021-05-30 11:30:29 +01:00
Anthony Birkett b5d355514b Docblocks, first pass with Psalm. 2021-05-30 10:54:42 +01:00
Anthony Birkett e62d011689 Bring in CS-Fixer, reformat. 2021-05-30 10:05:34 +01:00
Pavel Djundik 890d98da92 Add phpstan 2021-04-16 10:26:03 +03:00
Pavel Djundik 904e547fe4 Assign socket only if it was created
Fixes #149
2021-04-16 10:07:10 +03:00
Pavel Djundik cd3624704e Use Valve's packet names (proto_oob.h) 2020-12-08 11:59:45 +02:00
Pavel Djundik e96807bb24 Correct const for request value (it is still same value) 2020-12-05 12:31:51 +02:00
Pavel Djundik 673e572233 Use challenge straight away if available 2020-12-04 10:20:42 +02:00
Pavel Djundik 7c8e5add77 Support challenges in A2S_INFO 2020-12-04 10:18:46 +02:00
Pavel Djundik bbb6c4c23e Revert "Add 1200 byte padding to all requests"
This reverts commit 7231921b0b.
2020-12-04 10:05:37 +02:00
Pavel Djundik 7231921b0b Add 1200 byte padding to all requests
https://steamcommunity.com/discussions/forum/14/2989789048633291344/
2020-11-19 10:58:23 +02:00
Pavel Djundik 914ec4b79a Add more type info 2020-06-23 20:10:31 +03:00
Pavel Djundik b87c9faab9 Fix up some type information 2020-06-23 19:44:51 +03:00
Pavel Djundik 1078e47b7e Add missing uses 2020-06-23 19:36:17 +03:00
Pavel Djundik e00235c29a Add S2A extra data comments 2020-06-19 17:43:51 +03:00
Pavel Djundik 75d3465690 Drop the email 2019-11-25 16:07:21 +02:00
Byte ee60bef189 Only write SERVERDATA_RESPONSE_VALUE once for multi packet responses
This fixes the bug where all RCON queries on same SourceQuery object would return empty responses
2017-12-27 03:23:43 +11:00
Pavel Djundik d4ae8c631d Fix gold source query not working
Closes #95
2016-05-14 18:39:05 +03:00
Pavel Djundik 205ad2ec97 Send initial challenge request as 4 byte int
Closes #79
2015-12-15 15:40:19 +02:00
Pavel Djundik 8642079233 Add RCON non connected tests 2015-10-24 16:21:01 +03:00
Pavel Djundik 613299b2bc Throw more when using RCON 2015-10-24 16:11:55 +03:00
Pavel Djundik 4be6bf48c1 Simplify challenges 2015-10-24 16:08:34 +03:00
Pavel Djundik 98749925c7 Pass length into ReadInternal 2015-10-22 12:24:34 +03:00
Pavel Djundik 2bbe339458 Rename some variables for clarity 2015-10-22 11:58:33 +03:00
Pavel Djundik 4a73f14902 Make test mock a queue 2015-10-22 00:26:31 +03:00
Pavel Djundik c001fe6633 Remove unused reset function 2015-10-22 00:20:09 +03:00
Pavel Djundik 419f66ff72 And now make it work 2015-10-22 00:10:43 +03:00
Pavel Djundik 3c0ca191b5 Pass in callable correctly 2015-10-22 00:06:04 +03:00
Pavel Djundik af50a4a33a Throw in Buffer when there is not enough data to unpack 2015-10-21 23:54:14 +03:00
Pavel Djundik 5ab3873256 Improve socket mocking 2015-10-21 23:54:04 +03:00
Pavel Djundik a8d4418f28 Disable more camelcase goodness 2015-10-21 16:21:57 +03:00
Pavel Djundik 9c944e23d0 Make an abstract class for sockets and allow specifying different socket in SourceQuery
This is a preparation for tests
2015-10-19 22:18:10 +03:00
Pavel Djundik 412bad768c Fix module name and readme 2015-10-19 22:08:05 +03:00
Pavel Djundik 7636340092 Use gmp module to correctly read server's steamid on 32-bit systems 2015-10-19 22:04:34 +03:00
Pavel Djundik f41e4b551c Throw an exception when nothing was read from socket 2015-10-19 21:43:07 +03:00
Pavel Djundik d42aae5046 Get rid of global buffer
Closes #75
2015-10-19 21:38:05 +03:00
Pavel Djundik 24137d64e1 Failed spelling 2015-10-18 22:07:52 +03:00
Pavel Djundik 418dfd4050 Document additional throws and fix return 2015-10-18 22:06:52 +03:00
Pavel Djundik c74a5dcc99 Remove TimeoutException
Closes #74
2015-10-18 22:03:51 +03:00
Pavel Djundik 77e5af8745 Remove socket open check which can never be false 2015-10-18 22:01:28 +03:00
Pavel Djundik f18f3208fa Throw SocketException when trying to call query functions when not being connected 2015-10-18 21:56:34 +03:00
Pavel Djundik dc2a08e503 Less spacing 2015-10-11 13:06:02 +03:00
Pavel Djundik 65a2493c3c Update github url 2015-10-11 12:56:56 +03:00
Tim 9af9cf4f6b PSR-4 support for #70 plus PhpDoc 2015-10-10 18:48:52 +01:00
Kosh a6aa9c1abd Removed extra null byte from packing command 2015-07-14 11:31:33 +10:00