• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Sending text over socket help!!

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic