]> git.meshlink.io Git - meshlink/blobdiff - src/net_socket.c
Add a callback that notifies the application when it is blacklisted.
[meshlink] / src / net_socket.c
index 7ac6dbbdbe023b06033e5e76956b964ff2cdc9b6..abf6a7cf0e0eb7fa878f347efa45a6910c646927 100644 (file)
@@ -143,6 +143,10 @@ static void handle_meta_write(meshlink_handle_t *mesh, connection_t *c) {
        }
 }
 
+void flush_meta(meshlink_handle_t *mesh, connection_t *c) {
+       handle_meta_write(mesh, c);
+}
+
 static void handle_meta_io(event_loop_t *loop, void *data, int flags) {
        meshlink_handle_t *mesh = loop->data;
        connection_t *c = data;
@@ -320,7 +324,7 @@ static bool get_next_outgoing_address(meshlink_handle_t *mesh, outgoing_t *outgo
 
                outgoing->ai = NULL;
                outgoing->aip = NULL;
-               outgoing->state = OUTGOING_RECENT;
+               outgoing->state = OUTGOING_END;
        }
 
        if(outgoing->state == OUTGOING_RECENT) {