23 #ifndef DIGIKAM_MJPEG_SERVER_P_H
24 #define DIGIKAM_MJPEG_SERVER_P_H
29 #include <QStringList>
54 explicit Private(QObject*
const parent);
60 void setMaxClients(
int);
61 int maxClients()
const;
68 int writeInSocket(
int sock,
const QByteArray& data)
const;
73 QString clientDescription(QTcpSocket*
const client)
const;
78 bool isOpened()
const;
83 bool open(
const QString& address,
int port);
117 void slotNewConnection();
122 void slotClientDisconnected();
136 void clientWriteMultithreaded(
int client,
const QByteArray& data);
Definition: mjpegserver_p.h:49
QStringList blackList
Clients Ip address list to ban.
Definition: mjpegserver_p.h:110
QByteArray lastFrame
the current JPEG frame to dispatch to all connected clients.
Definition: mjpegserver_p.h:106
QFuture< void > srvTask
server threaded task used to stream on clients.
Definition: mjpegserver_p.h:107
QMutex mutexFrame
to protect current frame data.
Definition: mjpegserver_p.h:109
QList< QTcpSocket * > clients
list of client connected sockets.
Definition: mjpegserver_p.h:105
QMutex mutexClients
to protect current clients list.
Definition: mjpegserver_p.h:108
int rate
stream frames rate per secs [1...30].
Definition: mjpegserver_p.h:103
QTcpServer * server
main tcp/ip server.
Definition: mjpegserver_p.h:102
int delay
delay between frames in us (1E6/rate).
Definition: mjpegserver_p.h:104
Definition: mjpegserver.h:39
Definition: mjpegframeosd.cpp:45