Skip to content

Commit a9fa945

Browse files
[IMPROVE_THIS] Interface constructor with no parameters and friend with GenericConnectionHandler
1 parent 47db610 commit a9fa945

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ConnectionHandlerInterface.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ typedef void (*OnNetworkEventCallback)();
4141
CLASS DECLARATION
4242
******************************************************************************/
4343

44+
// forward declaration FIXME
45+
class GenericConnectionHandler;
46+
4447
class ConnectionHandler {
4548
public:
4649

47-
ConnectionHandler(bool const keep_alive, NetworkAdapter interface);
50+
ConnectionHandler(bool const keep_alive=false, NetworkAdapter interface=NetworkAdapter::NONE);
4851

4952

5053
NetworkConnectionState check();
@@ -109,5 +112,7 @@ class ConnectionHandler {
109112
OnNetworkEventCallback _on_connect_event_callback = NULL,
110113
_on_disconnect_event_callback = NULL,
111114
_on_error_event_callback = NULL;
115+
116+
friend GenericConnectionHandler;
112117
};
113118

0 commit comments

Comments
 (0)