• (3 Pages)
  • +
  • 1
  • 2
  • 3

A simple Chat program with Client/Server (GUI optional) Rate Topic: ***** 1 Votes

#31 Prakash2003  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-May 13

Posted 06 May 2013 - 04:01 PM

Thanks for the wonderful example. I got a question on the Server Program.

When i tried to run the Server with the below 2 lines jumbled it is not working. The Server or Client are not responding. They simply stuck.

 
// create output first
sOutput = new ObjectOutputStream(socket.getOutputStream());
sInput = new ObjectInputStream(socket.getInputStream());



Why should we create the ObjectOutputStream First. How does that make difference.

Thanks
Prakash
Was This Post Helpful? 0
  • +
  • -

#32 Arkar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 05-April 13

Posted 10 May 2013 - 09:55 PM

Welcome to the Chat room
Connection accepted /149.171.37.231:80
Exception creating new Input/output Streams: java.io.EOFException
Connection accepted /149.171.37.231:80
Exception creating new Input/output Streams: java.io.EOFException
Connection accepted /149.171.37.231:80
Exception creating new Input/output Streams: java.io.EOFException



Hi,
would you please explain why this massage is popped out while trying to connect to the particular server running in "C".

what sort of necessary steps do I need to implement to be able to connect with that server?

Thanks!
Was This Post Helpful? 0
  • +
  • -

#33 noten  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • Posts: 1
  • Joined: Yesterday, 08:49 PM

Posted Yesterday, 08:53 PM

Hi!

I know this post is old, but I need some help making the chat public! could ya help me? thanks :D

View Postnoten, on 18 May 2013 - 08:52 PM, said:

Hi!

I know this post is old, but I need some help making the chat public! could ya help me? thanks :D/>


Like, so my friends can play :D
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3