diff options
| author | 2026-04-13 16:11:04 -0400 | |
|---|---|---|
| committer | 2026-04-13 16:11:04 -0400 | |
| commit | a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98 (patch) | |
| tree | ff9dcee72485443b77f03220564efa44fbe0c705 /src/rpc2.h | |
| parent | f78a30aaccffddc3e3eab07870e02157322af956 (diff) | |
| download | libnaunet-a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98.tar.gz libnaunet-a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98.tar.bz2 libnaunet-a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98.zip | |
a connecting stream. Cleanup timer.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/rpc2.h')
| -rw-r--r-- | src/rpc2.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |