From a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Apr 2026 16:11:04 -0400 Subject: Allow packet_stream_reconnect() to cut off a connecting stream. Cleanup timer. Signed-off-by: Andrew Opalach --- src/rpc2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpc2.h') diff --git a/src/rpc2.h b/src/rpc2.h index e6c2098..bed8822 100644 --- a/src/rpc2.h +++ b/src/rpc2.h @@ -45,11 +45,11 @@ void nn_rpc_add_command(struct nn_rpc *rpc, struct nn_rpc_command *command); void nn_rpc_add_stream(struct nn_rpc *rpc, struct nn_packet_stream *stream); struct nn_rpc_connection *nn_rpc_prepare_client(struct nn_rpc *rpc); void nn_rpc_connect(struct nn_rpc *rpc, u8 id, u8 type, str *addr, u16 port); -void nn_rpc_reconnect(struct nn_rpc *rpc, str *addr, u16 port); + struct nn_rpc_connection *nn_rpc_reconnect(struct nn_rpc *rpc, str *addr, u16 port); struct nn_packet *nn_rpc_get_packet(struct nn_rpc *rpc, s8 op); void nn_rpc_free(struct nn_rpc *rpc); -// The order of commands per connection will be respected. +// The order of commands per-connection will be respected. void nn_rpc_connection_command(struct nn_rpc_connection *conn, struct nn_packet *packet, void (*callback)(void *, struct nn_rpc_connection *conn, struct nn_packet *), void *userdata); void nn_rpc_conn_flush(struct nn_rpc_connection *conn); -- cgit v1.2.3-101-g0448