|
Open Model Railroad Network (OpenMRN)
|
Notification implementation that sets an external variable to -1 when notified. More...
#include <ClientConnection.hxx>
Public Member Functions | |
| DeviceClosedNotify (int *fd, string name) | |
| Constructor. | |
| void | notify () override |
| Callback from the application when an error is encountered. | |
Private Attributes | |
| int * | fd_ |
| pointer to file descriptor variable. | |
| string | name_ |
| info to print to stderr upon error. | |
Notification implementation that sets an external variable to -1 when notified.
Supplied as an on-error callback to the gridconnect port creation method.
Definition at line 67 of file ClientConnection.hxx.
|
inline |
Constructor.
| fd | pointer to file descriptor variable that will be set to -1 upon error notification. |
| name | Info string to print to stderr when the device error causes a close event. |
Definition at line 76 of file ClientConnection.hxx.
|
inlineoverridevirtual |
Callback from the application when an error is encountered.
Implements Notifiable.
Definition at line 82 of file ClientConnection.hxx.
|
private |
pointer to file descriptor variable.
Definition at line 89 of file ClientConnection.hxx.
|
private |
info to print to stderr upon error.
Definition at line 90 of file ClientConnection.hxx.