#include <srcp_socket.h>
Public Slots | |
| void | start () |
| Start an internal thread for the info client. | |
| void | threadSafeDisconnectFromHost () |
| Threadfriendly disconnect from host. | |
| bool | sendMsg (QString msg) |
| QString | srcpReadLine () |
Signals | |
| void | errorOccured (QString) |
| Emitted if a connection or an SRCP error occured. | |
| void | infoReceived (QString) |
| Transmitt the received info to the SRCP client. | |
Public Member Functions | |
| SrcpSocket (const QString &type="", QObject *parent=0) | |
| ~SrcpSocket () | |
| Destructor, ensure that the thread are correctly stopped. | |
| QString | type () |
Private Attributes | |
| SrcpThread * | _internThread |
| Internal thread for the info client. | |
| QString | _type |
| The client type (i.e INFO, or COMMAND). | |
Definition at line 68 of file srcp_socket.h.
| SrcpSocket::SrcpSocket | ( | const QString & | type = "", |
|
| QObject * | parent = 0 | |||
| ) |
Constructor
| type | Is the type of SRCP client (i.e INFO, or COMMAND) |
Definition at line 44 of file srcp_socket.cpp.
References _internThread, and _type.
| SrcpSocket::~SrcpSocket | ( | ) |
Destructor, ensure that the thread are correctly stopped.
Definition at line 50 of file srcp_socket.cpp.
References threadSafeDisconnectFromHost().
| QString SrcpSocket::type | ( | ) |
Definition at line 55 of file srcp_socket.cpp.
References _type.
Referenced by sendMsg(), Srcp083Client::srcpHandshake(), and srcpReadLine().
| void SrcpSocket::errorOccured | ( | QString | ) | [signal] |
| void SrcpSocket::infoReceived | ( | QString | ) | [signal] |
| void SrcpSocket::start | ( | ) | [slot] |
Start an internal thread for the info client.
Definition at line 60 of file srcp_socket.cpp.
References _internThread, and infoReceived().
Referenced by Srcp083Client::srcpHandshake().
| void SrcpSocket::threadSafeDisconnectFromHost | ( | ) | [slot] |
Threadfriendly disconnect from host.
Definition at line 71 of file srcp_socket.cpp.
References _internThread, and SrcpThread::stop().
Referenced by SrcpVirtualClient::setConnection(), and ~SrcpSocket().
| bool SrcpSocket::sendMsg | ( | QString | msg | ) | [slot] |
Send the SRCP message to the server
Definition at line 79 of file srcp_socket.cpp.
References errorOccured(), and type().
Referenced by Srcp083Client::sendCommand(), and Srcp083Client::srcpHandshake().
| QString SrcpSocket::srcpReadLine | ( | ) | [slot] |
Read the message send by the SRCP server
Definition at line 97 of file srcp_socket.cpp.
References errorOccured(), and type().
Referenced by SrcpThread::run(), and Srcp083Client::srcpHandshake().
SrcpThread* SrcpSocket::_internThread [private] |
Internal thread for the info client.
Definition at line 116 of file srcp_socket.h.
Referenced by SrcpSocket(), start(), and threadSafeDisconnectFromHost().
QString SrcpSocket::_type [private] |
The client type (i.e INFO, or COMMAND).
Definition at line 119 of file srcp_socket.h.
Referenced by SrcpSocket(), and type().
1.5.6