This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Socket - I/O Activity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket - I/O Activity" Watch "Socket - I/O Activity" New topic
Author

Socket - I/O Activity

SAM KUMAR
Greenhorn

Joined: Jan 02, 2002
Posts: 25
Hi,
I am new to socket programming, I would like to know how much I/O activity or resource consumption (CPU etc) will be there if client application is connected to the server all the time, waiting for response and there is no data transmission ...
Socket client = new Socket(server, port);
// ... waiting for input from server
while (true)
{
line = is.readLine();
...
}

Thanks.
SK
SAM KUMAR
Greenhorn

Joined: Jan 02, 2002
Posts: 25
REPOSTING
 
 
subject: Socket - I/O Activity
 
Similar Threads
How to Close a Socket that is hanging on an I/O operation
java dynamic event
Communicate 2 android in 2 emulator
Giant downgrade of socket performance on Linux
Please find the problem in this code.