actually, I just want the idea here. I have a server, a client . client will request to display the files names in its directory(server's current directory). server will send the list.
my thinking : system command will be used here. when clinet enter "-ls" then server will have system() call and will get all the file names. but my problem is that how it will send these files name to the client ? can you please give me idea ? thanks.