Commit Graph

28 Commits

Author SHA1 Message Date
totokaka
240deb27d4 Raise IOError when TCPConnection.read(length) recieves no data.
This commit fixes #24 by simply checking whether the socket received any data at all. If it did not, an IOError is raised.
It might be that we should try to recieve multiple times before the IOError is raised, but this is not implemented in this commit as to avoid bloat.
2015-01-03 11:05:07 +01:00
Kevin Yap
bb2f0cec8e Changed MinecraftServer methods to use for loops 2014-09-25 17:26:18 -07:00
Nathan Adams
7bcbbc7409 Added a MinecraftServer.lookup method, converts a string to host/port (including SRV lookup)
This closes #12
2014-09-26 01:06:29 +02:00
Nathan Adams
18af499c62 Always make sure we have even the optional attributes of PingResponse 2014-09-26 00:02:02 +02:00
Nathan Adams
a8d9c482e7 Retest retries of server.status 2014-09-25 23:56:55 +02:00
Nathan Adams
a6ade86fad API changes to server (closes #14) 2014-09-25 23:53:48 +02:00
Nathan Adams
4c4239e6f8 Set default timeout to 3 2014-09-11 17:45:35 +02:00
Nathan Adams
1aff32d549 Result of ping.players.sample should be Player objects, not dicts. 2014-09-10 21:37:15 +02:00
Nathan Adams
3c0646367c We should write challenge as an int not uint 2014-09-10 21:34:23 +02:00
Nathan Adams
5c4d7fb35e Default charset is actually ISO-8859-1, not ascii. 2014-09-10 21:34:08 +02:00
Nathan Adams
1b17c1f702 Updated readme 2014-09-07 02:35:02 +02:00
Nathan Adams
9340ab47c1 Implemented retries on server.ping/query_server 2014-09-07 01:15:42 +02:00
Nathan Adams
08c368be12 Expose query through server.query_server() 2014-09-07 00:59:29 +02:00
Nathan Adams
4e52670370 Removed unused imports 2014-09-07 00:25:04 +02:00
Nathan Adams
1b8ebaf500 Don't get plugins using map() 2014-09-07 00:21:14 +02:00
Nathan Adams
0474c1d68d Parse Query responses into their own object 2014-09-07 00:17:08 +02:00
Nathan Adams
3de920b406 Removed __init__ files from tests. 2014-09-07 00:16:48 +02:00
Nathan Adams
c12836b011 Pack the ID byte when sending Query packets 2014-09-06 21:28:45 +02:00
Nathan Adams
3757cbe876 Fixed order of connection.write decoding 2014-09-06 21:22:35 +02:00
Nathan Adams
c6ba6778f6 Added support for Query 2014-09-06 21:19:24 +02:00
Nathan Adams
e1568b1950 Moved pinger's test file into the correct folder 2014-09-06 18:11:42 +02:00
Nathan Adams
631176be02 Added some more test cases 2014-09-05 17:49:33 +02:00
Nathan Adams
064ca652a4 Support favicon 2014-09-05 13:21:15 +02:00
Nathan Adams
94264f22ea Decode status results into their own object for accessibility & validation 2014-09-05 12:33:18 +02:00
Nathan Adams
db2d357623 Proper py3 support! 2014-09-05 00:03:46 +02:00
Nathan Adams
e82a44f580 Use bytearray more efficiently, better python 3.1 support 2014-09-04 23:21:52 +02:00
Nathan Adams
f07976fbec Added initial work for server pinging. Normal pings work, Query NYI. 2014-09-04 22:25:21 +02:00
Nathan Adams
34d0154f7a Removed everything; we're starting from scratch. 2014-09-02 17:28:59 +02:00