This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Client Server Help!  RSS feed

 
Wes Traylor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello this is my first post so please be patient. I am a java beginner and I need some help for a Client, Sever program. I am having trouble with the client side and sending a string request from the client to the server. Below is part of the code from the Server part.



This is the Client side of the program which I am having problems with. How do I send the string request to the server side?



 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Are "fromClient" and "toServer" Object[In|Out]putStreams? If so, then there are a few potential problems making those work the way you intend to. I'd suggest starting like this client/server application pair does.

Also read Don't println to a Socket (which the tutorial I linked to above violates, but otherwise it's a good tutorial :-).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!