dev_minimal_login (#7)
### Summary Implement minimal login flow without any authentication. Implement basic game server module with JoingGamePacket implemented. ### Type of Change New feature (non-breaking change which adds functionality) ### Affected Modules - [x] common/ - [ ] protocol/ - [ ] protocol.tls/ - [x] protocol.login/ - [ ] server/ - [x] server.login/ - [ ] keys/ - [ ] patcher/ - [ ] buildSrc/ ### Additional Notes _No response_ Reviewed-on: https://forge.fiereu.de/OpenMMO/OpenMMO/pulls/7 Co-authored-by: fiereu <contact@fiereu.de> Co-committed-by: fiereu <contact@fiereu.de>
This commit is contained in:
1 parent
9fabe28642
commit
a9bb88b246
33 files changed
+906
-86
No files matched your search
@@ -30,15 +30,16 @@ class TlsServerProtocol(serverKeyPair: Pair<ECPrivateKey, ECPublicKey>) : TlsPro
|
||||
init {
|
||||
incomingPacket(0x00u, ClientHelloPacketDeserializer())
|
||||
outgoingPacket(
|
||||
0x01u, ServerHelloPacket::class, ServerHelloPacketSerializer(serverKeyPair.first))
|
||||
0x01u, ServerHelloPacketSerializer(serverKeyPair.first), ServerHelloPacket::class
|
||||
)
|
||||
incomingPacket(0x02u, ClientReadyPacketDeserializer())
|
||||
}
|
||||
}
|
||||
|
||||
class TlsClientProtocol() : TlsProtocol() {
|
||||
init {
|
||||
outgoingPacket(0x00u, ClientHelloPacket::class, ClientHelloPacketSerializer())
|
||||
outgoingPacket(0x00u, ClientHelloPacketSerializer(), ClientHelloPacket::class)
|
||||
incomingPacket(0x01u, ServerHelloPacketDeserializer())
|
||||
outgoingPacket(0x02u, ClientReadyPacket::class, ClientReadyPacketSerializer())
|
||||
outgoingPacket(0x02u, ClientReadyPacketSerializer(), ClientReadyPacket::class)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user