Skip to content
Snippets Groups Projects

Draft: Resolve "Unix Socket Server schreiben"

Merged Leon Dietrich requested to merge 3-unix-socket-server-schreiben into master
4 files
+ 49
84
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -15,6 +15,7 @@ namespace rmrf::net {
if (this->server_active) {
io.stop();
this->net_socket.reset();
}
if (destructor_cb) {
@@ -61,10 +62,16 @@ namespace rmrf::net {
void connection_client::stop_server() {
this->server_active = false;
this->net_socket.reset();
this->write_queue.clear();
io.stop();
async.stop();
}
void connection_client::set_incomming_data_callback(const incomming_data_cb &cb) {
if(!this->server_active) {
return;
}
this->in_data_cb = cb;
this->async.send();
}
Loading