on_closed
Description:
[ CCode ( cname = "closed" ) ]
public signal void on_closed (bool remote_peer_vanished, Error? error)
public signal void on_closed (bool remote_peer_vanished, Error? error)
Emitted when the connection is closed.
The cause of this event can be
- If close is called. In this case
remote_peer_vanishedis set to false anderroris null. - If the remote peer closes the connection. In this case
remote_peer_vanishedis set to true anderroris set. - If the remote peer sends invalid or malformed data. In this case
remote_peer_vanishedis set to false anderroris set.
Upon receiving this signal, you should give up your reference to connection. You are guaranteed that this signal is emitted only
once.
Parameters:
| remote_peer_vanished |
true if |
| error |
a Error with more details about the event or null |