/*!
Returns a list of websocket versions that this server is supporting.
*/
-QList<WebSocketProtocol::Version> WebSocketServer::getSupportedVersions() const
+QList<WebSocketProtocol::Version> WebSocketServer::supportedVersions() const
{
QList<WebSocketProtocol::Version> supportedVersions;
supportedVersions << WebSocketProtocol::getCurrentVersion(); //we only support V13
/*!
Returns a list of websocket subprotocols that this server supports.
*/
-QList<QString> WebSocketServer::getSupportedProtocols() const
+QList<QString> WebSocketServer::supportedProtocols() const
{
QList<QString> supportedProtocols;
return supportedProtocols; //no protocols are currently supported
/*!
Returns a list of websocket extensions that this server supports.
*/
-QList<QString> WebSocketServer::getSupportedExtensions() const
+QList<QString> WebSocketServer::supportedExtensions() const
{
QList<QString> supportedExtensions;
return supportedExtensions; //no extensions are currently supported
textStream >> request;
HandshakeResponse response(request,
- getSupportedVersions(),
- getSupportedProtocols(),
- getSupportedExtensions());
+ supportedVersions(),
+ supportedProtocols(),
+ supportedExtensions());
disconnect(pTcpSocket, SIGNAL(readyRead()), this, SLOT(handshakeReceived()));
if (response.isValid())
int socketDescriptor() const;
bool waitForNewConnection(int msec = 0, bool *timedOut = 0);
- QList<WebSocketProtocol::Version> getSupportedVersions() const;
- QList<QString> getSupportedProtocols() const;
- QList<QString> getSupportedExtensions() const;
+ QList<WebSocketProtocol::Version> supportedVersions() const;
+ QList<QString> supportedProtocols() const;
+ QList<QString> supportedExtensions() const;
Q_SIGNALS:
void newConnection();