How do I execute method on server from client?

How do I execute method on server from client?For example, when I start Client it gets message from server to choose option 1- send file, 2-disconect.When I choose 1, server sends the file?
[210 byte] By [baneizalfea] at [2007-11-26 16:36:46]
# 1

From a client, you can't execute programs that are on the server. If this was possible, it would be a security hole.

From the client, you send informations to the server, which reads it and takes some action. Depending on the design of he server program, it might take different actions in response to the information received - or it might not.

Bottom line: A program must be running in the client, and another progrm must be running in the server.

ChuckBinga at 2007-7-8 23:01:44 > top of Java-index,Archived Forums,Socket Programming...
# 2
thanks. i tried. it works!
baneizalfea at 2007-7-8 23:01:44 > top of Java-index,Archived Forums,Socket Programming...