Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Progress Monitor Input Stream Socket Programming  RSS feed

Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a socket connected client and server. I tried to implement progressMonitorInputStream() to server, the data is transferred perfectly but the Progress Monitor is not visible. I tried implementing it for reading from a file only one side, there the progress monitor works fine. Below are both codes



The above code is the problematic one. The working code is below:

Proper working code with File Input Stream on one side

I am not able to figure out why Progress Monitor is displayed in FileInputStream Program but not on socket program.I get no exceptions or errors just the progress monitor isn't displayed. Any ideas?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!