Commit Graph

69 Commits

Author SHA1 Message Date
Joshua Scott 62fc1e13ef util: Fix missing noexcept compile error on CI 2018-12-09 23:28:40 +00:00
Joshua Scott 4872d1a2a4 pclass: Improve Value casting and implement basic enum types 2018-12-09 23:21:22 +00:00
Joshua Scott 595b6167c0 pclass: Fix CI build errors 2018-12-05 00:45:01 +00:00
Joshua Scott 38f69d722c pclass: Implement Value casting 2018-12-04 22:24:26 +00:00
Joshua Scott 6a213c18d4 etc: Change naming convention for base classes (prefix with "I") 2018-12-01 17:16:40 +00:00
Joshua Scott 34bc3d30bc etc: Move the responsibility of type checking to properties 2018-11-27 15:36:57 +00:00
Joshua Scott 3a22c992b5 etc: Implement deserialization and object copying
Also make BitStream tests use REQUIRE instead of SUCCESS and FAIL for better output.
2018-11-27 11:51:56 +00:00
Joshua Scott 4e3b3de391 util: Implement a common interface for bit streams 2018-11-18 17:10:21 +00:00
Joshua Scott 050a63152b util: Attempt to fix error with FlagsEnum 2018-11-16 15:32:17 +00:00
Joshua Scott abbaf7ce58 pclass: Fix build errors on CI 2018-11-16 15:18:32 +00:00
Joshua Scott d6442068ed serialization: Start implementing SerializerBinary
This current implementation can fully save objects, but cannot currently load them.
2018-11-16 15:04:00 +00:00
Joshua Scott 48aba1f0df pclass: Implement string primitives and class types 2018-11-16 15:02:43 +00:00
Joshua Scott 25d371b49f util: Forgot to push header file for previous commit 2018-11-16 14:53:46 +00:00
Joshua Scott fd84614450 pclass: Implement floating point primitives 2018-10-26 18:40:11 +01:00
Joshua Scott 1fbfaee8cb pclass: Define bit integers as primitive types on TypeSystem 2018-10-26 15:03:18 +01:00
Joshua Scott a6e7ba11df pclass: Fix build errors on CI 2018-10-26 14:53:40 +01:00
Joshua Scott 8f5d31d071 pclass: Implement BitInteger and other bit utilities 2018-10-26 14:42:00 +01:00
Joshua Scott 73608ce23c pclass: Implement primitive types 2018-10-26 01:00:13 +01:00
Joshua Scott 8fbb9ba906 pclass: Start implementing TypeSystem 2018-10-25 11:39:16 +01:00
Joshua Scott c9f99e1f1a util: Add a postfix increment operator to BitStream::stream_pos 2018-10-20 20:08:17 +01:00
Joshua Scott 3f5450c64e util: Fix buffer expansion and reformat unit tests 2018-10-20 18:17:35 +01:00
Joshua Scott 44cb15d4d2 etc: Fix build problems on CI 2018-10-20 01:21:06 +01:00
Joshua Scott 6249d6ee32 util: Add BitStream class + tests 2018-10-20 00:09:50 +01:00
Joshua Scott 9c6a756f68 Merge branch 'master' into messaging 2018-04-22 17:25:22 +01:00
Joshua Scott 6d02bfe06a protocol: Give exceptions their own error codes 2018-04-22 17:11:12 +01:00
Joshua Scott a00f9b5003 net: Pass a pointer rather than a reference in DMLSession::on_message 2018-04-20 18:57:05 +01:00
Joshua Scott 993191ec51 net: Add error codes to Session::close 2018-04-20 18:53:23 +01:00
Joshua Scott 7932ee2831 net: Add error codes to DMLSession::invalid_message
I'm going to rethink this though because I'd like to have more detailed error codes.
2018-04-20 17:22:51 +01:00
Joshua Scott e26a20d650 net: Add a method to get the MessageManager instance from a DMLSession 2018-04-20 17:12:31 +01:00
Joshua Scott 802dfeba29 dml: Fix some const-correctness problems 2018-04-20 01:41:33 +01:00
Joshua Scott d1118a937b protocol: Messages must now be created from a MessageTemplate
It shouldn't have been possible to create a Message manually.
2018-04-20 01:35:05 +01:00
Joshua Scott a58341b279 net: Forgot to push Session 2018-04-15 22:52:41 +01:00
Joshua Scott bdededbb84 protocol: Combine Participant and Session
Also removes ParticipantType
2018-04-15 22:52:13 +01:00
Joshua Scott 38e0547e84 protocol: Rename control messages to SESSION_OFFER and SESSION_ACCEPT
I like these names better
2018-04-13 03:43:03 +01:00
Joshua Scott eeb5b5c14b net: Make Participant::on_packet_available protected
Technically we don't want derived classes to be able to call this, but it's needed for the Python side to be able to override it.
2018-04-11 01:20:23 +01:00
Joshua Scott 59aa21b4b6 net: Implement send_message on DMLSession 2018-04-11 01:18:31 +01:00
Joshua Scott 1d6855581a net: Fix namespace typo in DMLSession
Forgot to change these to net after moving them from dml
2018-04-11 01:16:21 +01:00
Joshua Scott 2acb22214c net: Rename dml::Session to net::DMLSession 2018-04-11 01:13:37 +01:00
Joshua Scott c4630ae970 net: Session::send_packet was unnecessarily templated 2018-04-11 01:12:53 +01:00
Joshua Scott e62f3e7647 protocol: Implement a DML-based Session 2018-04-11 00:35:16 +01:00
Pythonology 70679afed1
net: send_packet_data() needs to be protected
This is required in order to expose it to Python.
2018-04-09 22:34:50 -04:00
Joshua Scott 5ff4fb651d protocol: Add Participant and Session 2018-04-09 21:53:09 +01:00
Joshua Scott 57ef9b95f8 protocol: Implement PacketHeader 2018-04-09 21:51:02 +01:00
Joshua Scott 611943e3ad protocol: Remove the Packet class
It doesn't need to exist
2018-04-09 21:49:11 +01:00
Joshua Scott a13731ccc0 protocol: Fix memory leak in Packet when data isn't read succesfully 2018-04-06 04:52:58 +01:00
Joshua Scott f2247f03f4 protocol: Fix typo in MessageBuilder 2018-04-06 04:24:10 +01:00
Joshua Scott 0a2997e3d7 Merge branch 'master' into messaging 2018-04-06 04:15:12 +01:00
Joshua Scott b5909878f8 protocol: Use an auto sorting system for message types
Rather than calling sort_lookup externally
2018-04-06 04:14:37 +01:00
Joshua Scott 9ef780ace1 protocol: Fix message types in modules that don't specify _MsgOrder 2018-04-06 03:07:35 +01:00
Joshua Scott 8d7348aa81 dml: Fix bug with BYT/UBYT fields in XML
also made get_value_string and set_value_from_string public and part of the abstract base class.
2018-04-05 17:37:59 +01:00