Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libquassel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
libquassel
Commits
f395da01
Verified
Commit
f395da01
authored
4 years ago
by
Janne Mareike Koschinski
Committed by
Janne Mareike Koschinski
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve docs further
parent
5eb3842c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libquassel-protocol/src/main/kotlin/de/justjanne/libquassel/protocol/types/HandshakeMessage.kt
+26
-27
26 additions, 27 deletions
...e/justjanne/libquassel/protocol/types/HandshakeMessage.kt
with
26 additions
and
27 deletions
libquassel-protocol/src/main/kotlin/de/justjanne/libquassel/protocol/types/HandshakeMessage.kt
+
26
−
27
View file @
f395da01
...
...
@@ -29,9 +29,10 @@ import de.justjanne.libquassel.protocol.variant.QVariantMap
*/
sealed
class
HandshakeMessage
{
/**
* Client registration message containing metadata about the connecting client
* Client registration message containing metadata about the connecting
* client.
*
* Core should respond with either [ClientInitAck] or [ClientInitReject]
* Core should respond with either [ClientInitAck] or [ClientInitReject]
.
*/
data class
ClientInit
(
/**
...
...
@@ -54,11 +55,10 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Message representing a successful client registration attempt
* Message representing a successful client registration attempt. Contains
* metadata about the core.
*
* Contains metadata about the core
*
* Client should proceed with either [ClientLogin] or [CoreSetupData]
* Client should proceed with either [ClientLogin] or [CoreSetupData].
*/
data class
ClientInitAck
(
/**
...
...
@@ -87,9 +87,9 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Message representing a failed client registration attempt
* Message representing a failed client registration attempt
.
*
* Client should abort the connection
* Client should abort the connection
.
*/
data class
ClientInitReject
(
/**
...
...
@@ -99,9 +99,9 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Client login message containing authentication data
* Client login message containing authentication data
.
*
* Core should respond with either [ClientLoginAck] or [ClientLoginReject]
* Core should respond with either [ClientLoginAck] or [ClientLoginReject]
.
*/
data class
ClientLogin
(
/**
...
...
@@ -115,9 +115,9 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Message representing a successful client login attempt
* Message representing a successful client login attempt
.
*
* Client will receive [SessionInit] immediately afterwards
* Client will receive [SessionInit] immediately afterwards
.
*/
object
ClientLoginAck
:
HandshakeMessage
()
{
override
fun
toString
():
String
{
...
...
@@ -126,9 +126,9 @@ sealed class HandshakeMessage {
}
/**
* Message representing a failed client login attempt
* Message representing a failed client login attempt
.
*
* Client should retry with different [ClientLogin] or abort the connection
* Client should retry with different [ClientLogin] or abort the connection
.
*/
data class
ClientLoginReject
(
/**
...
...
@@ -138,9 +138,9 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Message representing a successful core configuration attempt
* Message representing a successful core configuration attempt
.
*
* Client should proceed with [ClientLogin]
* Client should proceed with [ClientLogin]
.
*/
object
CoreSetupAck
:
HandshakeMessage
()
{
override
fun
toString
():
String
{
...
...
@@ -149,11 +149,10 @@ sealed class HandshakeMessage {
}
/**
* Core configuration message containing initial configuration properties
*
* Configuration has to happen before login
* Core configuration message containing initial configuration properties.
* Configuration has to happen before login.
*
* Core should respond with either [CoreSetupAck] or [CoreSetupReject]
* Core should respond with either [CoreSetupAck] or [CoreSetupReject]
.
*/
data class
CoreSetupData
(
/**
...
...
@@ -183,9 +182,9 @@ sealed class HandshakeMessage {
)
:
HandshakeMessage
()
/**
* Message representing a failed core configuration attempt
* Message representing a failed core configuration attempt
.
*
* Client should retry with different [CoreSetupData] or abort the connection
* Client should retry with different [CoreSetupData] or abort the connection
.
*/
data class
CoreSetupReject
(
/**
...
...
@@ -199,24 +198,24 @@ sealed class HandshakeMessage {
*/
data class
SessionInit
(
/**
* List of Identity sync objects existing at the current time
* List of Identity sync objects existing at the current time
.
*
* Identity objects created or modified after [SessionInit] will be defined
* via sync updates and RPC identity creation messages
* via sync updates and RPC identity creation messages
.
*/
val
identities
:
QVariantList
?,
/**
* List of existing buffers at the current time
* List of existing buffers at the current time
.
*
* Buffers created or deleted after [SessionInit] will be defined via RPC
* messages
*/
val
bufferInfos
:
QVariantList
?,
/**
* List of Ids of Network sync objects existing at the current time
* List of Ids of Network sync objects existing at the current time
.
*
* Network objects created or modified after [SessionInit] will be defined
* via sync updates and RPC identity creation messages
* via sync updates and RPC identity creation messages
.
*/
val
networkIds
:
QVariantList
?
)
:
HandshakeMessage
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment