c source code for scanning a shared directory of a host
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This would be more appropriate in the "Programming" forum, though you should realize that LQ is not here to do your work for you. Users here will be glad to give you advice, but asking them to write you a complete function is another story.
What protocol, and how would you access the shared directory if you weren't using C?
If you've mounted the shared directory as part of your own filesystem, then you can just parse it as one of your own. glibc has an API for this.
We can't give more specific advice than that, because that's all we can do with the information provided. Also, we don't know what the Host and Result structures (or are they typedefs) look like.
Was the deletion accidental or intentional? If it was accidental, we can help you restore the content. If it was intentional, we need to explain why that is normally not acceptable behavior here. You're new & I'd like to see you get off to a good start to becoming an asset to the LQ community.
Thanks for your co-operation.
Last edited by archtoad6; 04-03-2011 at 09:12 AM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.