Joshua Scott
|
1c013677ea
|
dml: Fix bug when binary data was presented inside a STR field
|
2018-05-05 14:48:53 +01:00 |
Joshua Scott
|
05e48a2cbb
|
net: Fix is_alive returning false by giving some leniency
|
2018-04-24 20:06:53 +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
|
1927426034
|
net: Fix some observed problems
It seems the client sends application messages before the session has been established.
|
2018-04-20 01:35:43 +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
|
0eb81803c7
|
net: Fix memcpy build error on Linux
I swear I already did this...
|
2018-04-15 22:58:50 +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
|
00b404f132
|
net: Fix usages of send_packet
|
2018-04-11 02:55:01 +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
|
599afed56f
|
control: Catch DML errors when parsing control messages
|
2018-04-11 00:50:10 +01:00 |
Joshua Scott
|
88f98fd84c
|
net: Fix small bug in PacketHeader
This prevented on_invalid_packet from being called
|
2018-04-11 00:38:33 +01:00 |
Joshua Scott
|
e62f3e7647
|
protocol: Implement a DML-based Session
|
2018-04-11 00:35:16 +01:00 |
Joshua Scott
|
e89cdd2ae4
|
protocol: Don't handle application messages before CLIENT_HELLO
|
2018-04-09 22:09:49 +01:00 |
Joshua Scott
|
1755bda42e
|
protocol: Fix memcpy build error
|
2018-04-09 21:56:58 +01: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
|
2f51a53cb3
|
protocol: Message record should start off as a nullptr
|
2018-04-06 05:36:54 +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
|
3922ca4b39
|
dml: Only parse element nodes in Record XML
This fixes spaces and other oddities in the official modules.
|
2018-04-06 04:01:22 +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 |
Joshua Scott
|
3e34c0b3bc
|
protocol: Implement module loading and I/O for DML messages
'das alota cod
|
2018-04-05 17:36:26 +01:00 |
Joshua Scott
|
e2f6bd1655
|
dml: Add method for getting FieldBase * from Record
Needed for niceties in the Python binding
|
2018-04-04 04:08:06 +01:00 |
Joshua Scott
|
915b6e7e0a
|
protocol: Implement control messages
|
2018-04-03 21:36:24 +01:00 |
Joshua Scott
|
9653475ed9
|
protocol: Implement Packet
|
2018-04-03 19:49:58 +01:00 |
Joshua Scott
|
85361f0e40
|
protocol: Add source files to CMakeLists.txt
also fix error in Packet.h
|
2018-04-03 17:20:33 +01:00 |
Joshua Scott
|
016e360b98
|
dml: Fields don't need to know which Record they belong to
This was preventing progress on the Python binding
|
2018-04-02 02:54:13 +01:00 |
Joshua Scott
|
9034c893a7
|
dml: Add more robust error reporting
|
2018-04-01 16:23:36 +01:00 |
Joshua Scott
|
bba2aae43b
|
dml: Fix build errors due to missing includes
|
2018-03-31 23:02:00 +01:00 |
Joshua Scott
|
9cb5426d1e
|
dml: Fix build error on Travis
|
2018-03-31 20:30:32 +01:00 |
Joshua Scott
|
cad6f44208
|
dml: Add XML input/output
<RECORD> elements can now be parsed.
Tests need to be written for this.
|
2018-03-31 20:22:57 +01:00 |
Joshua Scott
|
a1689a142c
|
dml: Fix a problem that would have only been apparent on big-endian PCs
|
2018-03-30 21:40:05 +01:00 |
Joshua Scott
|
605819b539
|
dml: Don't serialize/deserialize NOXFER fields
|
2018-03-30 21:13:23 +01:00 |
Joshua Scott
|
2f56518b66
|
dml: Replace usage of wchar_t with char16_t
|
2018-03-30 20:05:01 +01:00 |
Joshua Scott
|
2e17370337
|
dml: Fix build errors from Travis
|
2018-03-30 19:29:12 +01:00 |
Joshua Scott
|
977ea2310e
|
dml: Specialize string types
(also, fixed the tests for strings)
|
2018-03-30 18:58:57 +01:00 |
Joshua Scott
|
7903e23d90
|
dml: Specialize floating point types
(also, fixed a typo in the tests for DBL fields)
|
2018-03-30 16:54:02 +01:00 |