Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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


---------------------------------------------------------------------------------
 
 
subject: SocketException is not throwing in Windows Vista while network lost.
 
Similar Threads
Reading a binary file from a client to server
Server sending data to Clients Randomly
making Thread of methods
Data from server is not sent to client
client / server (communication problem...)