Commit Graph

14 Commits

Author SHA1 Message Date
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 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 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
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