class final
ServerImplements AbstractNetwork for a server.
Contents
- Reference
Base classes
- class AbstractNetwork
- Contains all common events for a client/server.
Public functions
- auto getSocket() -> QTcpSocket * -> auto override
- Helper to get current connection.
Function documentation
auto sk:: Server:: getSocket() -> QTcpSocket * override
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.