Solved

Client Server information exchange

Posted on 2003-11-23
1
329 Views
Last Modified: 2010-03-31
Im doing a small client server project and i dont fully understand how a client can talk to a server. I have set up a socket and can print from the server side to the client but what i want to be able to do now is send values from the client and save them in variables on the server side for processing.
Can you please tell me what are the comands on the client side to send a variable
String value;  and the commands on the server side to store it in String clientValue.  
Any help will be greatly appreciated
Raftor
0
Comment
Question by:Raftor
1 Comment
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 9805795
You need to get an output stream at the client end and send a String to the server. See my answer to the following question (essentially the same):

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20805979.html
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java.io.BufferedReader   readLine()  //returns the entire file ? 4 73
Weekend adv creator 3 38
VB Script to add site to Java Exception List 4 78
servlet example 17 32
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question