Terminus
networkclient.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QObject>
4 
6 
7 namespace terminus
8 {
9 
10 class NetworkConnection;
11 
19 {
20  Q_OBJECT
21 
22 public:
23  NetworkClient(QObject *parent = 0);
24 
25  void connectClient(QString host, unsigned short port);
26 
27 protected slots:
28  void onSocketConnected();
29  void onSocketDisconnected();
30 };
31 
32 } //namespace terminus
The NetworkEndpoint class provides a common interface that NetworkServer and NetworkClient implement...
Definition: networkendpoint.h:19
NetworkClient(QObject *parent=0)
Definition: networkclient.cpp:8
void onSocketConnected()
Definition: networkclient.cpp:21
void connectClient(QString host, unsigned short port)
Definition: networkclient.cpp:17
The NetworkServer implements the NetworkEndpoint interface as the client role of a TCP connection...
Definition: networkclient.h:18
void onSocketDisconnected()
Definition: networkclient.cpp:26
Definition: eventhandler.cpp:18