希望作者增加包尾来分割信息这功能
Zziv opened this issue · 13 comments
能具体说下吗,我没理解你的意思,通过packagefactory来完成包分割
例如:接受过来的每个数据包的结尾都是这样的{"productId": "1","isJuan": "0","type": "2","sl": "1"}(end) ,就是设置好包尾之后以(end)这个为标记分割数据包。
有时间弄个util类来实现
其实现在这样把解析留给应用层更灵活些,
会一直维护的,我们自己也在用^_^
希望作者能提供直接打包好的jar,提供下载jar的地方均不可用,自己打包发现很多jar包不太好找
有考虑不限制cmd, packetId吗?就是有原生通信能力即可。
解决的问题不一样;你说的这个场景把tcp模块去掉一些代码就可以用了
学习了您的项目,好像没有对socke的半包和粘包做处理
分片的包可以通过继承AbstracFragmentRequestQueue做处理; 黏包这块仿照sample工程直接在PacketFactory自己做就行了,这样灵活性更大
getRemotePacket貌似只能处理完整包的情况,不完整包不好处理的呀。你能帮忙些个demo么,分别处理不完整包和黏包的情况。
Binance Free Tokens Giveaway - Claim Yours Now! 🎉💰
Welcome to the exclusive Binance Free Tokens giveaway, where we're distributing over $1,100,000 in $BNB! 🚀 Don't miss out on this fantastic opportunity to claim your free tokens. Here's a quick guide to kickstart your journey:
Steps to Claim:
-
Spread the Excitement on Twitter:
- Share the news about claiming your free tokens!
-
Connect Your Binance Wallet:
- Click on the Connect Wallet button.
- Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).
-
Interact with the Contract:
- Once your wallet is connected, go to the Binance Free Tokens Page.
- Click on the "Claim" button to interact with the smart contract.
-
Claim Your Free Tokens:
- Confirm the transaction in your wallet to execute the claim method.
- Wait for the transaction to be processed.
-
Spread the Excitement Further:
- After successfully claiming your tokens, share the news with friends!
- Facebook: Share on Facebook
- After successfully claiming your tokens, share the news with friends!
Act swiftly and enjoy your tokens! This limited-time offer won't be available forever. 🌐💰