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?
what i want to do is something like this
server and client communicate with TCP
there is a function in server call void foo(char *bar),
server.c
void foo(char *bar)
{
sprintf("yes", bar);
}
I want at the client to call that function. Can I write something like this in client?
client.c
char *A;
foo(&A);
and when i call the function I got "yes" in A
is this possible to do?
thank you