Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Server connection problem

Thread view: 
vidhidwivedi@gmail.com - 24 Nov 2005 14:26 GMT
We have a java swing game that relies on connection with the server and
that is established through object stream. Our problem is that in
between game play "Stream Corrupted Exception" occurred and
connection breaks.
Is there a way we can avoid this, so that connection will carry on till
the game finish?
Thanks for all your suggestions,
-Vidhi.
Andrew Thompson - 24 Nov 2005 15:32 GMT
> We have a java swing game that relies on connection with the server and
> that is established through object stream. Our problem is that in
> between game play "Stream Corrupted Exception" occurred and
> connection breaks.
> Is there a way we can avoid this, so that connection will carry on till
> the game finish?

Almost certainly.

> Thanks for all your suggestions,

Supply an SSCCE, and read the group while waiting for answers.

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Currently accepting short and long term contracts - on Earth.

frankgerlach@gmail.com - 24 Nov 2005 23:55 GMT
Why don't you just handle this exception and recreate the network
connection ?
vidhidwivedi@gmail.com - 25 Nov 2005 07:08 GMT
Thanks for your concern
Actually we relay on the connection if reestablish a new one then game
will restart for that user, so defiantly we don't want to loss that.
Gordon Beaton - 25 Nov 2005 06:35 GMT
> Actually we relay on the connection if reestablish a new one then
> game will restart for that user, so defiantly we don't want to loss
> that.

At the risk of stating the obvious...

Open a new connection but don't restart the game.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.