code format
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#ifndef DISPATCHERCLIENT_H
|
||||
#define DISPATCHERCLIENT_H
|
||||
|
||||
#include "piethernet.h"
|
||||
#include "picloudtcp.h"
|
||||
#include "piethernet.h"
|
||||
#include "pistreampacker.h"
|
||||
|
||||
|
||||
class DispatcherClient: public PIObject {
|
||||
PIOBJECT(DispatcherClient)
|
||||
|
||||
public:
|
||||
DispatcherClient(PIEthernet * eth_, int id);
|
||||
~DispatcherClient();
|
||||
@@ -18,10 +19,10 @@ public:
|
||||
void sendData(const PIByteArray & data);
|
||||
void sendDataToClient(const PIByteArray & data, uint client_id);
|
||||
void authorise(bool ok);
|
||||
bool isAuthorised() const {return authorised;}
|
||||
PICloud::TCP::Role role() const {return tcp.role();}
|
||||
bool isAuthorised() const { return authorised; }
|
||||
PICloud::TCP::Role role() const { return tcp.role(); }
|
||||
PIString address();
|
||||
uint clientId() const {return client_id;}
|
||||
uint clientId() const { return client_id; }
|
||||
EVENT1(disconnectEvent, DispatcherClient *, client)
|
||||
EVENT2(registerServer, const PIByteArray &, sname, DispatcherClient *, client)
|
||||
EVENT2(registerClient, const PIByteArray &, sname, DispatcherClient *, client)
|
||||
|
||||
Reference in New Issue
Block a user