LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2011, 12:52 PM   #1
xin jo
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
c source code for scanning a shared directory of a host


Hi all,

s

Appreciate any help/tips

Last edited by xin jo; 03-31-2011 at 04:55 PM.
 
Old 03-31-2011, 01:50 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 03-31-2011, 02:02 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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.

EDIT: WHY DID YOU DELETE THE QUESTION?

Last edited by dugan; 03-31-2011 at 05:32 PM.
 
1 members found this post helpful.
Old 04-01-2011, 05:14 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
xin jo,

Welcome to LQ. I hope you enjoy it here.

dugan asks a good question:
Quote:
Originally Posted by dugan View Post
EDIT: WHY DID YOU DELETE THE QUESTION?
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ettercap crashes during scanning for host kususe Linux - Software 3 03-07-2011 09:30 AM
source code for cd (change directory) Spyes Programming 14 02-10-2010 10:45 AM
Reload this Page Where is the kernel module source code directory? Unregistered Slackware 1 10-13-2007 10:06 PM
writing a c code for scanning files for certain phrases raklo Programming 3 06-21-2007 11:47 AM
directory scanning sana hasan Programming 3 08-17-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration