1
0
Commit Graph

51 Commits

Author SHA1 Message Date
tycho
899955f9e3 Remove a pair of unused broken functions 2015-10-02 17:26:53 +02:00
Mattes D
6e4122e551 Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
Samuel Barney
804805d35a Silenced and fixed many warning messages across multiple files. 2015-07-29 09:49:30 -06:00
Mattes D
d390214929 SelfTests are registered and executed after logging framework init.
Fixes #2228.
2015-06-11 22:20:04 +02:00
Mattes D
b913c5da69 Added VarInt64, normalized cPacketizer datatype names. 2015-03-22 23:09:23 +01:00
Mattes D
c626848393 Unified cPacketizer across all protocols. 2015-03-22 19:46:08 +01:00
Mattes D
b1d4b3bb96 Unified cByteBuffer types.
cByteBuffer now reads and writes any of the [U]Int<N> types.
2015-03-21 13:00:20 +01:00
Matyas Dolak
adf3b3a569 ByteBuffer: Added support for reading unsigned shorts and ints. 2015-01-21 12:12:22 +01:00
Mattes D
35a3a1b9f4 cByteBuffer: Improved SingleThreadAccessChecker performance.
But it's still poor and unusable for regular testing.
2015-01-03 22:24:12 +01:00
Mattes D
e09348c05d ByteBuffer: SingleThreadAccessChecker is request-only.
It slows the server down way too much, so it can't be turned on by default.
2014-12-24 09:13:58 +01:00
Mattes D
0ecc16c618 Fixed indent. 2014-12-03 18:24:28 +01:00
Mattes D
664ea804a3 ByteBuffer: Re-added Single-thread access checker. 2014-12-03 18:04:08 +01:00
Tiger Wang
987f79afdd En masse NULL -> nullptr replace 2014-10-20 21:55:07 +01:00
Tiger Wang
6d5a8892f3 Use std::thread 2014-10-19 00:29:34 +01:00
Tiger Wang
1f8ee70d55 Bug fix 2014-09-27 22:13:37 +01:00
madmaxoft
6b260f06ba cByteBuffer: Simplified ReadPosition().
Also, by popular demand, added more comments to the code.
2014-09-25 23:06:21 +02:00
madmaxoft
0443f5d531 cByteBuffer: Fixed position reading. 2014-09-25 21:23:05 +02:00
madmaxoft
8f4cc27e39 Added cByteBuffer::WriteBEUShort(). 2014-09-25 20:47:29 +02:00
Howaner
be6d4a5912 1.8: Simplified item metadata reading. 2014-09-18 16:04:03 +02:00
Howaner
3ee211bbba Use xofts ReadPosition() code. 2014-09-17 17:53:42 +02:00
Howaner
34bcd3dd58 1.8: Fixed ReadItem() 2014-09-12 02:42:04 +02:00
Howaner
8f8693a71e Fixed more 1.8 packets. 2014-09-08 17:02:54 +02:00
Alexander Harkness
d07134e621 Assume POWER is big-endian, so it compiles.
[reference](http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#POWER)

We may want to come back and figure out if the processor is running in little-endian mode, but for now assume they're big-endian.
2014-08-23 16:06:34 +01:00
madmaxoft
2423fbf2ef Normalized comments.
This was mostly done automatically and then visually inspected for obvious errors.
All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-17 22:15:34 +02:00
archshift
e8143de01b Nullify deleted pointers. 2014-06-19 01:49:56 -07:00
worktycho
3e25852382 Removed assert that is now informed by type system 2014-06-11 10:04:34 +01:00
madmaxoft
fb173a756c Fixed warnings in cByteBuffer. 2014-05-01 22:54:22 +02:00
madmaxoft
0b16e6821f Merged branch 'master' into SslWrappers. 2014-04-28 22:05:02 +02:00
Tycho
35dc88e4ff Removed Old Asserts
Removed asserts about non-negative numbers on what are now unsigned types
Fixes CID 43608
2014-04-27 12:42:29 -07:00
madmaxoft
616fb15508 cByteBuffer uses void * instead of char * in data interface.
This makes it compatible with any pointer type.
2014-04-24 22:42:33 +02:00
madmaxoft
449cf77420 Changed cByteBuffer constructor to take a size_t instead of int. 2014-04-24 21:52:24 +02:00
Tycho
cd6ab5617c Fixed xofts issues 2014-03-14 06:11:49 -07:00
Tycho
7e6ee7ef81 Fixed more Format issues 2014-03-11 14:43:14 -07:00
Tycho
e9e2852ce1 Fixed test asserts 2014-03-10 13:12:43 -07:00
Tycho
bb28f0d1e3 Fixed assert 2014-03-10 12:36:01 -07:00
Tycho
b78c729880 Fixed Alignment issue in ByteBuffer 2014-03-10 11:56:23 -07:00
Tycho
14c2f620d1 FIxed int in test 2014-03-09 04:43:22 -07:00
Tycho
6b530bde75 Added static 2014-03-08 11:53:37 -08:00
Tycho
a6ed75c1fb Added tons more asserts to bytebuffer 2014-03-08 11:18:51 -08:00
Tycho
27fa2b72ba Enabled self test of bytebuffer 2014-03-08 11:05:37 -08:00
Tycho
307fad0f25 Fixed issues with int vs size_t and a few other warnings 2014-03-08 08:33:38 -08:00
Tycho
9b47366d03 Actually Fixed ByteBuffer 2014-03-08 07:36:52 -08:00
Tycho
d33d72f0dc Warnings 2014-03-07 11:04:25 -08:00
madmaxoft
ab4672be40 cByteBuffer has more self-tests. 2014-01-26 17:56:12 +01:00
Tycho Bickerstaff
c3e34ee81a removed unneccisary cast 2013-12-31 09:16:44 +01:00
Tycho Bickerstaff
c83dfdb66e fixed warnings in bytebuffer.cpp 2013-12-31 09:16:41 +01:00
madmaxoft
33c6bcc2f4 Fixed threading issues affecting cProtocol172. 2013-12-13 17:53:26 +01:00
Alexander Harkness
9f1efbdf21 Hopefully fixed the sparc not being detected 2013-12-04 18:57:23 +00:00
madmaxoft
3963a72046 Fixed an off-by-one error in cByteBuffer.
Could have caused random protocol errors and maybe even crashes.
2013-11-29 18:39:40 +01:00
Alexander Harkness
c3cd436ec3 Merge remote-tracking branch 'origin/master' into foldermove2
Conflicts:
	GNUmakefile
2013-11-24 14:37:03 +00:00