Java Programming - socket programming

once i create a client and server class, how can i use them together? the client class has a gui so i dont want to use telnet or do i have to?can i upload the server class file to my server (web host)?
[215 byte] By [.clickya] at [2007-11-26 23:23:52]
# 1

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.

TuringPesta at 2007-7-10 14:30:07 > top of Java-index,Java Essentials,Java Programming...
# 2

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.

.clickya at 2007-7-10 14:30:07 > top of Java-index,Java Essentials,Java Programming...
# 3
i want the server class to be online so the application can be multiuser
.clickya at 2007-7-10 14:30:07 > top of Java-index,Java Essentials,Java Programming...
# 4
your webhost needs to provide a jvm
TuringPesta at 2007-7-10 14:30:07 > top of Java-index,Java Essentials,Java Programming...
# 5

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.

jawadhashmia at 2007-7-10 14:30:07 > top of Java-index,Java Essentials,Java Programming...