• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending text over socket help!!  RSS feed

 
Devasia Manuel
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why wont this piece of code work, I know its quite basic but I havent done socket programming for a long time and have forgotten most of it, here is the 2 classes: NOTE: The sockets connect to each other and the client sends the message well but server has trouble recieving.

I don't get any exceptions when running the code, the problem is that the server does not receive the messages that I send from the client.



[ October 03, 2008: Message edited by: Devasia Manuel ]
[ October 03, 2008: Message edited by: Devasia Manuel ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devasia, it's not really acceptable to say "please excuse my indenting", when it's so easy to UseCodeTags that cause the code to be properly indented. You'll greatly increase the chances that someone (including myself) will read the code and try to help you. While you don't say specifically HOW the code doesn't work, I can see at least one fundamental problem with it. Please go back and edit your post to include CODE tags.
[ October 02, 2008: Message edited by: Ulf Dittmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!