![]() |
CustusX
22.09
An IGT application
|
#include <cxSocketConnection.h>
Classes | |
struct | ConnectionInfo |
Public Slots | |
bool | sendData (const char *data, qint64 maxSize) |
not thread-safe More... | |
Signals | |
void | connectionInfoChanged () |
void | stateChanged (CX_SOCKETCONNECTION_STATE status) |
void | connected () |
void | disconnected () |
void | error () |
Public Member Functions | |
SocketConnection (QObject *parent=0) | |
ConnectionInfo | getConnectionInfo () |
thread-safe More... | |
CX_SOCKETCONNECTION_STATE | getState () |
thread-safe More... | |
virtual void | setConnectionInfo (ConnectionInfo info) |
thread-safe More... | |
virtual void | requestConnect () |
not thread-safe: use invoke More... | |
virtual void | requestDisconnect () |
not thread-safe: use invoke More... | |
Protected Member Functions | |
virtual void | setProtocol (QString protocolname)=0 |
SocketConnectorPtr | createConnector (ConnectionInfo info) |
bool | socketIsConnected () |
bool | enoughBytesAvailableOnSocket (int bytes) const |
bool | socketReceive (void *packPointer, int packSize) const |
QStringList | getAllServerHostnames () |
void | setCurrentConnectionInfo () |
void | stateChange (CX_SOCKETCONNECTION_STATE newState) |
CX_SOCKETCONNECTION_STATE | computeState () |
Protected Attributes | |
QTcpSocket * | mSocket |
CX_SOCKETCONNECTION_STATE | mCurrentState |
QMutex | mNextConnectionInfoMutex |
ConnectionInfo | mNextConnectionInfo |
info to be used for the next connect(), mutexed. More... | |
SocketConnectorPtr | mConnector |
Definition at line 54 of file cxSocketConnection.h.
|
explicit |
Definition at line 64 of file cxSocketConnection.cpp.
|
protected |
Definition at line 218 of file cxSocketConnection.cpp.
|
signal |
|
signal |
|
protected |
Definition at line 133 of file cxSocketConnection.cpp.
|
signal |
|
protected |
Definition at line 195 of file cxSocketConnection.cpp.
|
signal |
|
protected |
SocketConnection::ConnectionInfo cx::SocketConnection::getConnectionInfo | ( | ) |
thread-safe
Return the connection info for the next connection. Any existing connection might have other values.
Definition at line 86 of file cxSocketConnection.cpp.
CX_SOCKETCONNECTION_STATE cx::SocketConnection::getState | ( | ) |
thread-safe
Definition at line 118 of file cxSocketConnection.cpp.
|
virtual |
not thread-safe: use invoke
Definition at line 123 of file cxSocketConnection.cpp.
|
virtual |
not thread-safe: use invoke
Definition at line 146 of file cxSocketConnection.cpp.
|
slot |
not thread-safe
Definition at line 158 of file cxSocketConnection.cpp.
|
virtual |
thread-safe
Definition at line 92 of file cxSocketConnection.cpp.
|
protected |
|
protectedpure virtual |
|
protected |
Definition at line 190 of file cxSocketConnection.cpp.
|
protected |
Definition at line 203 of file cxSocketConnection.cpp.
|
protected |
Definition at line 103 of file cxSocketConnection.cpp.
|
signal |
|
protected |
Definition at line 119 of file cxSocketConnection.h.
|
protected |
Definition at line 114 of file cxSocketConnection.h.
|
protected |
info to be used for the next connect(), mutexed.
Definition at line 116 of file cxSocketConnection.h.
|
protected |
Definition at line 115 of file cxSocketConnection.h.
|
protected |
Definition at line 112 of file cxSocketConnection.h.