hello....i am trying to implement a client/server socket program in C to display the files available on the server to the client....how do i do this???

This answer will be very similar to the directions here with the exception that instead of handling the file contents you will want to use the OS API for listing files within a program and write that to the client instead of the file contents.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.