12 Commits

Author SHA1 Message Date
Florian Spieß
dd47c7c66d Improve handling of disconnects and reconnects (#228)
* Check response 0 on disconnect

From recv(): The return value will be 0 when the peer has performed an orderly shutdown

* Add persistent presence and handlers

* Use buffer instead of raw struct

* Clear presence data on shutdown

* Remove CurrentPresence and add boolean instead

This removes the need for having 2 big buffers in favor of using a small boolean
2018-11-16 10:41:49 -08:00
Chris Marsh
990c8d4be6 Enable warnings, clang edition. 2017-10-12 16:08:08 -07:00
Chris Marsh
5882823830 OSX build fix 2017-08-21 12:51:38 -07:00
Chris Marsh
a7eb65355e missed a format 2017-08-02 10:44:08 -07:00
Chris Marsh
d5e6c4c11a track open/close state in connection, disconnect on read error, clarify error codes a little 2017-07-31 15:38:12 -07:00
Chris Marsh
a6a9b6259f missed a format I guess 2017-07-28 10:57:22 -07:00
Chris Marsh
9eb7e41c4b try more pipes 2017-07-27 16:08:17 -07:00
Chris Marsh
20ad7e4ced OSX/linux version initial attempt 2017-07-27 16:08:17 -07:00
Chris Marsh
fbd8d6897d Automate running clang-format if it is available. 2017-07-25 11:02:28 -07:00
Chris Marsh
85fc57dea2 getpid 2017-07-20 14:58:23 -07:00
Chris Marsh
72446df921 less stubby 2017-07-13 10:47:18 -07:00
Chris Marsh
79823706e8 stub unix 2017-07-13 10:08:14 -07:00