• Post Reply Bookmark Topic Watch Topic
  • New Topic

example socket

 
jose luis larios
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody i can help me, this need one example of sockets (server,client)
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Sun's All About Sockets for a gentle introduction. Try some of the little sample programs they have. Ask here if they don't make sense.
 
Darren Brooks
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recieve a Socket exception when the client disconnects from the server (and the other way around, as well). I have read that one should properly close the streams connected to the socket, and then close the socket. This I have done, but it seems a final message is being sent saying the socket has been closed and this is reporting an error, instead of just closing cleanly.

Any thoughts on this situation? thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!