Hi,
So, I did create a client and a server, and all of them work pretty well. When I send messages to the server, rather than sending one message at a time, I put the information in a class, say like a Person class - I put set the Person's age, name, height, etc - create an object of the person class and send it. Server receives it and is able to open it up and get the information.
Now, I got a question. The only reason my server can get this information is because the server is in my computer, and I all I have to do is write a:
import personPackage.Person
and I can do what I wish. If my server were on another computer, it wouldn't be able to do that import, and hence, it won't be able to get messages from the client.
My question is, how do I go about solving this problem? I was thinking of jar files. You know, how sometimes I put in external JARS in my library and I'm able to import and use classes - is this the right method? How do I go about doing this?
THanks