class
AbstractNetworkContains all common events for a client/server.
Contents
- Reference
Derived classes
- class Client final
- Implements AbstractNetwork for a client.
- class DummyNetwork final
- Implement AbstractNetwork for single-user mode.
- class Server final
- Implements AbstractNetwork for a server.
Public functions
- auto getSocket() -> QTcpSocket * -> auto pure virtual
- Helper to get current connection.
Signals
- void receivedMessage(QString const& msg)
- Called when the other user does something that changes appearance on canvas.
Function documentation
auto sk:: AbstractNetwork:: getSocket() -> QTcpSocket * pure virtual
Helper to get current connection.
If the app was started as a server, this returns the client 'connection', If the app was started as a client, this 'returns' the server, otherwise it simply returns nullptr.