Primitive tracking for SSB connections, as in we tried to connect to host X Y seconds ago, and it failed. This needs to be replaced with something better.
◆ tf_ssb_connections_t
An SSB connections tracker instance.
◆ tf_ssb_t
◆ tf_ssb_connections_create()
Create a connection tracker.
- Parameters
-
- Returns
- The connection tracker instance.
◆ tf_ssb_connections_destroy()
Destroy a connection tracker.
- Parameters
-
connections | The connection tracker to destroy. |
◆ tf_ssb_connections_set_attempted()
void tf_ssb_connections_set_attempted |
( |
tf_ssb_connections_t * |
connections, |
|
|
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
key |
|
) |
| |
Record that a connection was recently attempted.
- Parameters
-
connections | The connection tracker. |
host | The host name or address. |
port | The network port number. |
key | The identity on the other end of the connection. |
◆ tf_ssb_connections_set_succeeded()
void tf_ssb_connections_set_succeeded |
( |
tf_ssb_connections_t * |
connections, |
|
|
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
key |
|
) |
| |
Record that a connection recently succeeded.
- Parameters
-
connections | The connection tracker. |
host | The host name or address. |
port | The network port number. |
key | The identity on the other end of the connection. |
◆ tf_ssb_connections_store()
void tf_ssb_connections_store |
( |
tf_ssb_connections_t * |
connections, |
|
|
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
key |
|
) |
| |
Store a connection in the connection tracker.
- Parameters
-
connections | The connection tracker. |
host | The host name or address. |
port | The network port number. |
key | The identity on the other end of the connection. |
◆ tf_ssb_connections_sync_start()
Initiate an immediate sync.
- Parameters
-
connections | The connections tracker. |