Unix Programming - library for whois ???

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > library for whois ???





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author library for whois ???
Etno

2004-01-23, 5:17 pm

Hey folks,

I'm writing a C++ application. I was wondering if there is a C++ library
that allows me to make whois calls and store the results in a datastructure
of some kind.

I know windows has these libraries, but not sure about the unixes or
linuxes.

Anyone know if this is possible and if so what library is used?

Thanks a lot!


James Chen

2004-01-23, 5:17 pm

If you are working on Unix now, you can look up the function by using
"grep".
As I remember, there is a similar C function. You can call it in your C++
application.

James

"Etno" <m@i.com> wrote in message
news:VSGqb.15426$1N3.7638@twister.nyroc.rr.com...
quote:

> Hey folks,
>
> I'm writing a C++ application. I was wondering if there is a C++ library
> that allows me to make whois calls and store the results in a


datastructure
quote:

> of some kind.
>
> I know windows has these libraries, but not sure about the unixes or
> linuxes.
>
> Anyone know if this is possible and if so what library is used?
>
> Thanks a lot!
>
>




Barry Margolin

2004-01-23, 5:17 pm

In article <5nUqb.2817$XDB.997@news01.bloor.is.net.cable.rogers.com>,
James Chen <chenzhijian@hotmail.com> wrote:
quote:

>If you are working on Unix now, you can look up the function by using
>"grep".



Huh? Don't you mean "man"? Grep is used for searching for a string in a
text file.
quote:

>As I remember, there is a similar C function. You can call it in your C++
>application.



I've never heard of such a function being a standard, or even common, part
of Unix. You can use system() or popen() to run the "whois" shell command,
but that's it.

If there's a functional interface, it's in a third-party library.
quote:

>"Etno" <m@i.com> wrote in message
>news:VSGqb.15426$1N3.7638@twister.nyroc.rr.com...
>datastructure
>
>




--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com