Commit Graph

21 Commits

Author SHA1 Message Date
Kjistóf 3faabb1e4e receive_policy must provide an invalid_msg_do_what method 2016-12-07 19:13:41 +01:00
Kjistóf e1f42bf31d clients now can subscribe to be nofified when cnm receives a message 2016-12-07 19:13:41 +01:00
Kjistóf 406c7b2841 added comments to chat_networking.hpp to promote better understanding 2016-12-07 19:13:41 +01:00
Kjistóf ab4a102bad fixed a bug, where messages would only be read till whitespaces 2016-12-07 19:13:13 +01:00
Kjistóf eed5fc25d9 added a little good old fashioned command-line chat action 2016-12-07 19:11:52 +01:00
Kjistóf d0a995d6da fixed bugs (random tabs appering) regarding message content handling 2016-12-04 13:59:17 +01:00
Kjistóf d673fd24d1 removed unused include 2016-12-04 13:29:45 +01:00
Kjistóf 1bd1cb343a implemented message handling for every type of message via policies 2016-12-04 12:51:28 +01:00
Kjistóf 7eb1191a1d completed TODO: handshaking messages are now handled by receive policy 2016-12-03 23:27:36 +01:00
Kjistóf f6fb183649 added compile time check to cnm for the validity of the supplied policy 2016-12-03 20:56:02 +01:00
Kjistóf 7a9e581979 added missing include guard to chat_networking.hpp 2016-12-03 18:18:08 +01:00
Kjistóf 88aff84db1 what to do on received messages is now handled via template policies 2016-12-03 16:26:13 +01:00
Kjistóf 5cfef17cc2 implemented cnm::close_connection() + general code cleaning + added TODOS 2016-12-03 15:30:15 +01:00
Kjistóf 6f34d28458 rearranged code in client_network_manager, so it is more readable 2016-12-03 14:30:55 +01:00
Kjistóf ee9e5c812b added some proof of concept receive handling in client_network_manager 2016-12-03 14:23:11 +01:00
Kjistóf 096d56d488 now client_network_manager::receive() actually works 2016-12-03 13:51:33 +01:00
Kjistóf b42aa09286 reformatted source code 2016-12-03 13:22:51 +01:00
Kjistóf 75f77766c1 moved everything to namespace chat to avoid namespace pollution 2016-12-03 13:13:06 +01:00
Kjistóf 07284e5dc7 made client_network_manager mostly working. it can handle a handshake 2016-12-03 13:02:37 +01:00
Kjistóf 8cddc402f1 added a send() method to the network manager and removed a ctor parameter 2016-11-29 18:42:38 +01:00
Kjistóf 60bb1e6142 started working on the networking part of the chat client 2016-11-29 18:24:33 +01:00