I'm trying to open a file in the client and pass the filehandle to the server (where the file is read).
I'm having problems using the filehandle in the server as it is invalid in the server.
Does anyone know how I could solve this prob or if I'm doing anything wrong?
here is what I have ...
IN CLIENT ...
int filehandle;
filehandle = _open(filename, _O_RDONLY);
x(filehandle); // x is some function in the server
_close(filehandle);
IN SERVER ...
_read(filehnadle, ...);