This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes SocketException is not throwing in Windows Vista while network lost. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "SocketException is not throwing in Windows Vista while network lost." Watch "SocketException is not throwing in Windows Vista while network lost." New topic
Author

SocketException is not throwing in Windows Vista while network lost.

ShaikSs Azmathulla
Greenhorn

Joined: Oct 14, 2011
Posts: 1
Hello All,

We have a Server and client programs which reads file from server and writes to client.


While reading the file from server if network goes down (we can try by removing network cable)
then in Windows XP machine it is throwing SocketException but in Windows Vista it is not throwing any exception.

We have observed this strange behavior in Windiows Vista.

Is there any issues with Vista OS for Sokcet programming.



Server.java - It reads the data from file which is placed server and writes to client
Client.java - It take the data correcspoding server socket and print the data on console.


Please find the attached programs.


Thanks in Advance.


------------------------------------------------------------
Server.java


-----------------------------------------------------------------------------

Client.java


---------------------------------------------------------------------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SocketException is not throwing in Windows Vista while network lost.