diff options
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) |