diff options
Diffstat (limited to 'src/btfrv.h')
| -rw-r--r-- | src/btfrv.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/btfrv.h b/src/btfrv.h index 9d6756e..9cd7476 100644 --- a/src/btfrv.h +++ b/src/btfrv.h | |||
| @@ -49,7 +49,12 @@ RvSocket RvServiceRegister(const char* relay_host, unsigned short port, | |||
| 49 | // Block on a registered service socket until a client is paired to us. Returns | 49 | // Block on a registered service socket until a client is paired to us. Returns |
| 50 | // false if the relay drops us or errors, in which case the caller should close | 50 | // false if the relay drops us or errors, in which case the caller should close |
| 51 | // the socket and register again. | 51 | // the socket and register again. |
| 52 | bool RvServiceWaitPaired(RvSocket s); | 52 | // Blocks until a client is paired with us. Give it a timeout, in seconds, and |
| 53 | // it returns false once that passes with nobody arriving -- which the caller | ||
| 54 | // should treat as "register again", not as an error. Zero means wait forever, | ||
| 55 | // which is what this used to do unconditionally and must not be used for a | ||
| 56 | // registration socket: see the note on the implementation. | ||
| 57 | bool RvServiceWaitPaired(RvSocket s, int nTimeoutSecs = 0); | ||
| 53 | 58 | ||
| 54 | // ---- client side (the node dialing a .btf address) ---- | 59 | // ---- client side (the node dialing a .btf address) ---- |
| 55 | // Connect through the relay to the service registered under `target_pubkey`. | 60 | // Connect through the relay to the service registered under `target_pubkey`. |