diff options
Diffstat (limited to 'lib/stream-provider.h')
-rw-r--r-- | lib/stream-provider.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stream-provider.h b/lib/stream-provider.h index 03bf777b..120879d0 100644 --- a/lib/stream-provider.h +++ b/lib/stream-provider.h @@ -53,6 +53,11 @@ struct stream_class { /* Prefix for connection names, e.g. "tcp", "ssl", "unix". */ const char *name; + /* True if this stream needs periodic probes to verify connectivty. For + * streams which need probes, it can take a long time to notice the + * connection was dropped. */ + bool needs_probes; + /* Attempts to connect to a peer. 'name' is the full connection name * provided by the user, e.g. "tcp:1.2.3.4". This name is useful for error * messages but must not be modified. @@ -145,6 +150,11 @@ struct pstream_class { /* Prefix for connection names, e.g. "ptcp", "pssl", "punix". */ const char *name; + /* True if this pstream needs periodic probes to verify connectivty. For + * pstreams which need probes, it can take a long time to notice the + * connection was dropped. */ + bool needs_probes; + /* Attempts to start listening for stream connections. 'name' is the full * connection name provided by the user, e.g. "ptcp:1234". This name is * useful for error messages but must not be modified. |