• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bufferedreader missing packets

 
simone giusti
Ranch Hand
Posts: 48
  • 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: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any hints ?? please !
 
Ron McLeod
Saloon Keeper
Posts: 1263
131
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: 48
  • 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: 1263
131
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?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!