how to call function at server

Posted by: johnjohn11

how to call function at server - 06/14/04 10:38 PM

Hello everybody,

I need some help from you.

It is all around socket programming.
I got my client and server worked, it is just a simple socket programming with read() and write().

Suppose I know there is a function at the server side: void foo(char *bar).
Is it possible from client to call this function? if yes, how can i do this? what should i do?

thank you
Posted by: SilentRage

Re: how to call function at server - 06/14/04 11:01 PM

When the server reads a special command sent by the client, it calls the function and can even write back out to the client the result.