[#btcsignals-connection]
= xref:btcsignals.adoc[btcsignals]::connection
:relfileprefix: ../
:mrdocs:

State object representing the liveness of a registered callback&period; signal&colon;&colon;connect() returns an enabled connection which can be held and disabled in the future&period;

== Synopsis

Declared in `&lt;util&sol;btcsignals&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class connection;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btcsignals/connection/2constructor.adoc[`connection`]         [.small]#[constructor]#
| The default constructor creates a connection with no associated signal
| xref:btcsignals/connection/connected.adoc[`connected`] 
| Returns true if this connection was created by a signal and has not been disabled&period;
| xref:btcsignals/connection/disconnect.adoc[`disconnect`] 
| If a callback is associated with this connection, prevent it from being called in the future&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:btcsignals/signal.adoc[btcsignals::signal]`
| Functor for calling zero or more connected callbacks&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
