diff options
| author | 2026-04-13 16:11:04 -0400 | |
|---|---|---|
| committer | 2026-04-13 16:11:04 -0400 | |
| commit | a389b8f2f9c55b76fe5a28c3f1fea798ed37aa98 (patch) | |
| tree | ff9dcee72485443b77f03220564efa44fbe0c705 /src/rpc.c | |
| 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/rpc.c')
| -rw-r--r-- | src/rpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -125,10 +125,11 @@ void nn_rpc_connect(struct nn_rpc *rpc, u8 id, u8 type, str *addr, u16 port) nn_packet_stream_connect(rpc->conn->stream, rpc->loop, id, type, addr, 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) { al_assert(rpc->conn); nn_packet_stream_reconnect(rpc->conn->stream, addr, port); + return rpc->conn; } // @TODO: Pack opcode into a u32, reduce ID by 8 bits (make struct with bitmask) |