Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Responce time
Responce time [message #335567] Wed, 15 April 2009 13:03 Go to next message
ganesh is currently offline ganesh
Messages: 2
Registered: July 2009
Junior Member
I have developed SWT application for windows OS(developed on XP) using
eclise3.0 and swt 3.0 .And my application looks like Eclipse IDE in UI.

By using my application i will get connected with the devices(hardware) in
my lab by using their IP address.For this i am using Socket class of
rt.jar.

The problem i am facing is :
Suppose there is a device 'x' with ip address 1.2.3.4
Now if i use the same ip address to connect with device it is giving
immediate responce.But if i type some wrong ip address it is taking 30
secs to give me responce to say it is not a valid ip for the device.
Can any one suggest how decrease this time of responce.Any alternative for
Socket class in rt.jar.
Any solution that will give me responce within 10 secs to say that it is
not a valid ip address.

Thanks,
Ganesh
Re: Responce time [message #335571 is a reply to message #335567] Wed, 15 April 2009 13:20 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Probably a java question, but most of the socket classes can specify a
timeout when connecting, no? like
java.net.Socket.connect(SocketAddress, int)

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Problems with problem markers decoration in the Project Explorer
Next Topic:Files copied from src to bin on compile - config?
Goto Forum:
  


Current Time: Wed Sep 17 13:53:46 GMT 2014

Powered by FUDForum. Page generated in 0.02234 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software