• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bufferedreader missing packets

 
simone giusti
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My socket client needs to receive informations from a Telnet Server with READLINE.
I built a thread always listening to server messages.
If the client sends more than a request sequentially, one or more answers are lost !
I am sure that server is answering.
How can I be sure of receiving all messages ?? (plain texts)


 
simone giusti
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any hints ?? please !
 
Ron McLeod
Saloon Keeper
Posts: 1287
143
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you share the code that you are actually running? What you posted earlier will not compile.
 
simone giusti
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ron McLeod wrote:Can you share the code that you are actually running? What you posted earlier will not compile.


It works for me !

 
Ron McLeod
Saloon Keeper
Posts: 1287
143
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrapped your code with a simple Activity and I didn't notice any lost messages from the server. Maybe your issue is with your server or the network interconnecting them?

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!