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
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):
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects.
Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …