Commit Graph
862 Commits
Author SHA1 Message Date
lotodore d8dcf78ab4 Protocol changes for admin functions. Fixing generic DB implementation. 2013-02-24 18:24:38 +01:00
lotodore 883ccdcf44 Preparing admin functions in PokerTH client. 2013-02-24 16:22:51 +01:00
Sven-Hendrik Haase 36d5e02436 Fix libircclient fix to work with multiple versions 2013-01-11 15:44:03 +01:00
Sven-Hendrik Haase 02473d95b4 Fix for newer libircclient 2013-01-03 15:41:35 +01:00
lotodore 13afee52f8 Consider avatar server of server list (reverting change specific for the beta release). 2013-01-01 15:17:50 +01:00
lotodore 1e0bd74db6 Fixing validation of empty packets. 2013-01-01 15:06:09 +01:00
lotodore ccdd838900 Fixing reset timeout and show own cards messages. 2013-01-01 14:31:04 +01:00
lotodore b78f1e730f Fixing gcc warning. 2013-01-01 10:15:53 +01:00
lotodore 163014328c Fixing gcc compiler warnings in packet validation code. 2013-01-01 00:37:18 +01:00
lotodore d4c1d64eda Trying to fix game info validation. 2013-01-01 00:27:49 +01:00
lotodore fb620625b6 Testing packet validation. 2012-12-31 23:05:28 +01:00
lotodore cbed0685e9 Log packet type of invalid packets. 2012-12-31 21:40:55 +01:00
lotodore eaa64cbc8c More packet validation for google protocol buffers. 2012-12-31 19:36:18 +01:00
lotodore 196686ee0e Fixing packet validation. 2012-12-31 16:38:29 +01:00
lotodore 4431efbbd8 First steps for network server packet validation. 2012-12-31 16:31:26 +01:00
Evgeni Golov 1bbe608f50 rename major/minor to majorVersion/minorVersion
PokerTH fails to build on Debian GNU/kFreeBSD and GNU/Hurd with:
 In file included from src/third_party/protobuf/pokerth.pb.cc:4:0:
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:9618:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.h:9640:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual void AnnounceMessage_Version::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual int AnnounceMessage_Version::ByteSize() const':
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version&)':
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: At global scope:
 src/third_party/protobuf/pokerth.pb.cc:14319:6: warning: unused parameter 'output' [-Wunused-parameter]
 src/third_party/protobuf/pokerth.pb.cc:18344:6: warning: unused parameter 'output' [-Wunused-parameter]
 make[2]: *** [obj/pokerth.pb.o] Error 1

Renaming the vars to majorVersion/minorVersion fixes this issue.

The problem on kFreeBSD is, that
 /usr/include/sys/kern/types.h
has
 #define major(x)        ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
 #define minor(x)        ((int)((x)&0xffff00ff))         /* minor number */
and this is included somewhere when you include stdlib.h, which protobuf's
headers do.

Hurd has similar definitions in /usr/include/i386-gnu/sys/sysmacros.h.
2012-12-28 12:14:54 +01:00
lotodore 45a5c7cef8 License change: OpenSSL exception (for Windows 8 support, because gcrypt does not work on Windows 8). 2012-12-25 15:06:23 +01:00
lotodore 805a804400 Preparing 1.0 beta1. 2012-12-23 14:38:20 +01:00
lotodore d3cd97c666 Running astyle. 2012-12-21 01:01:01 +01:00
lotodore 26507df7ef Switch to uploader thread for log file uploads. 2012-12-20 14:29:43 -08:00
lotodore b7f46d12e2 Still trying to fix "dereferencing type-punned pointer will break strict-aliasing rules"-warning. 2012-11-27 23:11:50 +01:00
lotodore 7ef3cc25bd Trying to fix "dereferencing type-punned pointer will break strict-aliasing rules"-warning. 2012-11-27 22:12:51 +01:00
lotodore 02016381ef Multiple player info requests can be placed in one packet. 2012-09-24 12:22:13 +02:00
lotodore f0ee0af6ec Some work on protocol buffer details. 2012-09-23 23:19:53 +02:00
lotodore 895a174a08 Fixing gcc compiler warnings. 2012-09-20 22:14:17 +02:00
lotodore 86c58fc7c8 Switching from ASN.1 (asn1c) to google protocol buffers. Some things are still missing (packet verification, tests, ...), this is very early stuff. 2012-09-18 15:57:58 +02:00
lotodore e38b2665c0 Fixing issue #147: No longer show synchronization error, so that rejoin is possible if sync problems occur. 2012-09-08 11:53:28 +02:00
lotodore f145ae2b42 Fixing cppcheck issues. 2012-09-02 12:35:41 +02:00
lotodore 7bc8c1b9f2 Fixing issue #138: No longer throw an exception if the server list is invalid, because the server list is always invalid in network games. 2012-06-17 13:35:31 +02:00
lotodore d8de1944e5 Fixing issue #134: Ignore additional join game messages if the player already joined a game. 2012-06-08 22:07:55 +02:00
lotodore 546f8c7ab5 Fixing issue #135: Double game invite no longer leads to kick (server side fix). 2012-06-08 21:21:44 +02:00
lotodore 26a152c157 Ignore additional "leave game" messages if the player is in the lobby (part of issue #134). 2012-06-01 21:26:15 +02:00
lotodore 3dee7370a9 Trying to fix "invalid nick" problems with IRC reconnect. 2012-05-02 08:48:52 +00:00
lotodore ed43fa107c Server feedback after report game. 2012-04-09 10:22:24 +00:00
lotodore dbdd135bc7 More work on report game function on server side. 2012-04-08 16:54:31 +00:00
lotodore c49abf215e Preparing server side code for reporting game names. 2012-04-08 14:36:14 +00:00
lotodore 3462a7060e Reverting invalid changes. 2012-03-31 20:17:10 +00:00
lotodore ac0041cb8f Preparing "reportGameName" network message. 2012-03-31 20:14:11 +00:00
lotodore 06145f30e9 Force reconnect of the irc bot by creating a file in the cache folder. 2012-03-03 14:16:45 +00:00
lotodore 81ee27de70 New admin function to remove a complete game by any player name within that game (#115). 2012-02-13 20:28:55 +00:00
lotodore 9aba52d0a6 Increase timeout factor before first timeout message. 2012-02-04 21:46:54 +00:00
lotodore 2d19013fae Cleaning up serverlist caching. 2012-02-04 21:39:24 +00:00
lotodore 58a0d3fb2e Download serverlist only once a day. Delete the current list if the connection to the server fails. #119 2012-02-04 20:33:39 +00:00
lotodore 6af6da5658 Remove tabs and newline characters from game name on server side. 2012-02-03 21:34:26 +00:00
floty 3b96fb2196 show logos in the log preview (#101) 2012-01-28 12:51:42 +00:00
lotodore e658a18913 Do not rejoin games with 0 cash. Workaround for #108. 2012-01-28 11:50:33 +00:00
lotodore 33cdfdaed7 Fixing rejoin for non-official server. 2012-01-28 11:23:26 +00:00
lotodore aa230ec17b Reverting last change. This should be fixed in libircclient. 2012-01-22 18:27:58 +00:00
lotodore 58e7802d0b Support libircclient 1.5. 2012-01-22 17:56:49 +00:00
lotodore 3ef29cb7ea Rejected chat is not a global notice, it is just a notice. 2012-01-09 18:41:31 +00:00