you use them together by sending bytes over their respective socket streams. There are convenient wrappers like ObjectOutputStream to send serialzied objects.
You do not have to use Telnet.
"server class file"?
you can send anything that is representable as a byte
to and from the Client/Server.
no i mean do i upload the server.class file to my web host? basically my program is as follows
mysql database and server class online
server class runs a set query and then handles user input from client.class which is on local machine
how would i do this? help much appreciated.
what is the objective of your server class ?
If it has to do some thing on the server machine like getting input from user and then sending back to the client. Then run it on the server in separate thread and keep it running.
Now connect the client with the server. There must be a protocol for the communication between the client and server.