![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <isl_interface.h>
Public Slots | |
| void | initServer () |
| void | initClient () |
Signals | |
| void | outputBufferChanged () |
| void | externalUserJoined (ServerInfo_User userInfo) |
| void | externalUserLeft (QString userName) |
| void | externalRoomUserJoined (int roomId, ServerInfo_User userInfo) |
| void | externalRoomUserLeft (int roomId, QString userName) |
| void | externalRoomSay (int roomId, QString userName, QString message, QString channelId) |
| void | externalRoomGameListChanged (int roomId, ServerInfo_Game gameInfo) |
| void | externalRoomRemoveMessages (int roomId, QString userName, int amount) |
| void | joinGameCommandReceived (const Command_JoinGame &cmd, int cmdId, int roomId, int serverId, qint64 sessionId) |
| void | gameCommandContainerReceived (const CommandContainer &cont, int playerId, int serverId, qint64 sessionId) |
| void | responseReceived (const Response &resp, qint64 sessionId) |
| void | gameEventContainerReceived (const GameEventContainer &cont, qint64 sessionId) |
Public Member Functions | |
| IslInterface (int socketDescriptor, const QSslCertificate &cert, const QSslKey &privateKey, Servatrice *_server) | |
| IslInterface (int _serverId, const QString &peerHostName, const QString &peerAddress, int peerPort, const QSslCertificate &peerCert, const QSslCertificate &cert, const QSslKey &privateKey, Servatrice *_server) | |
| ~IslInterface () | |
| void | transmitMessage (const IslMessage &item) |
Private Slots | |
| void | readClient () |
| void | catchSocketError (QAbstractSocket::SocketError socketError) |
| void | flushOutputBuffer () |
Private Member Functions | |
| void | sessionEvent_ServerCompleteList (const Event_ServerCompleteList &event) |
| void | sessionEvent_UserJoined (const Event_UserJoined &event) |
| void | sessionEvent_UserLeft (const Event_UserLeft &event) |
| void | roomEvent_UserJoined (int roomId, const Event_JoinRoom &event) |
| void | roomEvent_UserLeft (int roomId, const Event_LeaveRoom &event) |
| void | roomEvent_Say (int roomId, const Event_RoomSay &event) |
| void | roomEvent_ChannelSay (int roomId, const Event_RoomChannelSay &event) |
| void | roomEvent_ListGames (int roomId, const Event_ListGames &event) |
| void | roomEvent_RemoveMessages (int roomId, const Event_RemoveMessages &event) |
| void | roomCommand_JoinGame (const Command_JoinGame &cmd, int cmdId, int roomId, qint64 sessionId) |
| void | processSessionEvent (const SessionEvent &event, qint64 sessionId) |
| void | processRoomEvent (const RoomEvent &event) |
| void | processRoomCommand (const CommandContainer &cont, qint64 sessionId) |
| void | processMessage (const IslMessage &item) |
| void | sharedCtor (const QSslCertificate &cert, const QSslKey &privateKey) |
Private Attributes | |
| int | serverId |
| int | socketDescriptor |
| QString | peerHostName |
| QString | peerAddress |
| int | peerPort |
| QSslCertificate | peerCert |
| QMutex | outputBufferMutex |
| Servatrice * | server |
| QSslSocket * | socket |
| QByteArray | inputBuffer |
| QByteArray | outputBuffer |
| bool | messageInProgress |
| int | messageLength |
| IslInterface::IslInterface | ( | int | socketDescriptor, |
| const QSslCertificate & | cert, | ||
| const QSslKey & | privateKey, | ||
| Servatrice * | _server ) |
| IslInterface::IslInterface | ( | int | _serverId, |
| const QString & | peerHostName, | ||
| const QString & | peerAddress, | ||
| int | peerPort, | ||
| const QSslCertificate & | peerCert, | ||
| const QSslCertificate & | cert, | ||
| const QSslKey & | privateKey, | ||
| Servatrice * | _server ) |
| IslInterface::~IslInterface | ( | ) |
|
privateslot |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
privateslot |
|
signal |
|
signal |
|
slot |
|
slot |
|
signal |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
privateslot |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void IslInterface::transmitMessage | ( | const IslMessage & | item | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |