Module implementing a class representing a peer connection.
MaxBufferSize |
PingInterval |
PongTimeout |
SeparatorToken |
SeparatorToken_b |
TransferTimeout |
Connection | Class representing a peer connection. |
None |
Class representing a peer connection.
Editor |
GetParticipants |
Greeting |
Participants |
Ping |
PlainText |
Pong |
ProtocolEditor |
ProtocolGetParticipants |
ProtocolGreeting |
ProtocolMessage |
ProtocolParticipants |
ProtocolPing |
ProtocolPong |
ReadingGreeting |
ReadyForUse |
Undefined |
WaitingForGreeting |
None |
Connection | Constructor |
__dataLengthForCurrentDataType | Private method to get the data length for the current data type. |
__disconnected | Private slot to handle the connection being dropped. |
__hasEnoughData | Private method to check, if enough data is available. |
__processData | Private method to process the received data. |
__processReadyRead | Private slot to handle the readyRead signal. |
__readDataIntoBuffer | Private method to read some data into the buffer. |
__readProtocolHeader | Private method to read the protocol header. |
__sendGreetingMessage | Private slot to send a greeting message. |
__sendPing | Private slot to send a ping message. |
name | Public method to get the connection name. |
sendEditorCommand | Public method to send an editor command. |
sendGetParticipants | Public method to request a list of participants. |
sendMessage | Public method to send a message. |
sendParticipants | Public method to send the list of participants. |
serverPort | Public method to get the server port. |
setClient | Public method to set the reference to the cooperation client. |
setGreetingMessage | Public method to set the greeting message. |
timerEvent | Protected method to handle timer events. |
None |
Constructor
Private method to get the data length for the current data type.
Private slot to handle the connection being dropped.
Private method to check, if enough data is available.
Private method to process the received data.
Private slot to handle the readyRead signal.
Private method to read some data into the buffer.
Private method to read the protocol header.
Private slot to send a greeting message.
Private slot to send a ping message.
Public method to get the connection name.
Public method to send an editor command.
Public method to request a list of participants.
Public method to send a message.
Public method to send the list of participants.
Public method to get the server port.
Public method to set the reference to the cooperation client.
Public method to set the greeting message.
Protected method to handle timer events.