問題タブ [kryonet]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Java KryoNet BufferUnderflow
I am having a very odd issue with the latest version of KryoNet. I'm sending a very simple packet from my client and my server, and getting the buffer underflow exception. I have 4 other registered packets, all of which work flawlessly. The packet that is getting the buffer underflow issue has two string variables, and has been tested with both TCP and UPD. The exception occurs when the packet is sent fairly quickly, atlest twice in under a second. Very odd considering I have other packets that are being updated 60 times a second.
This issue is very different from other buffer underflow issue's I've researched. This issue isn't caused from sending very large data, as the packet has only two String variables. This issue also isn't caused by an applet or some other configuration, as I'm running it as an Application currently using LibGDX.
Do you guys have any ideas on what could be causing this issue?
Thank you and I hope you've had a happy holiday, - Jake
SOURCE: https://github.com/SirTrashyton/SquareContest (The class I'm having issues with is Packet05Chat)
java - KyroNet を使用して minecraft のパケットを処理できますか?
Kryonet を使用して Minecraft のパケットを管理できますか?
私のリスナーは、パケットを処理するために使用されるはずの「受信」メソッドではなく、接続された「切断」メソッドのみを起動するため、そうではないと思います。
java - Kryonet RMI スロー例外 => ループ (StackOverflowError)
Kryonet を使用して、RMI 経由でサーバー メソッドを呼び出します。 サービスが通常の値 (true/false など) を返す場合、正常に動作しています。
しかし、サービスが例外をスローすると、無限ループが発生し、サーバーで StackOverflowError が発生します。
サービス:
}
クライアントに電話する:
すべてのクラスは kryo に登録されています。
- サービス
- 例外
- 種類
Kryonet は RMI 経由で例外を処理できませんか?
testing - Gradle との統合テスト時にサーバーを実行する
Kryonet と Gradle を使用して、おおよそ次の構造のクライアント サーバー アーキテクチャを開発しました。
- プロジェクト A と B を含む親プロジェクト X
- プロジェクト A (サーバー)
- 統合および単体テスト クラスを含むプロジェクト B (クライアント)
プロジェクト B (またはプロジェクト X の方が簡単な場合) で目標 'integrationTest' を実行するときはいつでも、統合テストが失敗しないように、サーバーを事前に開始する必要があります。
これは、プロジェクト B の build.gradle でこれまでに取得したものです。ただし、サーバーは実行されません。
java - KryoNet - Android クライアントへのパケットの送信
さまざまな種類のパケットを送受信するためにクライアントをサーバーに接続する必要があるAndroidアプリを開発しています。それを達成するために、私はKryoNetライブラリを使用しています。私のクライアントは自分自身をサーバーに接続し、独自のパケットを正常に送信します。しかし、私の問題は、サーバーがそれらへの応答に失敗したように見えることです。これらのパケットをサーバー側とクライアント側で同じ順序で登録しconnection
、オーバーライドされたreveived
メソッド fromのパラメーターを使用しkryonet.Listener
て応答します (例: connection.sendUDP(...)
)。私はAndroid 5.0.2を持っており、サーバー側とクライアント側の両方で2.22.0-RC1バージョンのKryoNetを使用しています...オプション付きLog.set(Log.LEVEL_DEBUG)
有効にすると、サーバーがパケットの書き込みを開始することがわかります ( DEBUG: [kryo] write: PacketMovement ) が、何も受信しません。
この問題について何か助けていただければ幸いです。