[Mono-list] How to get the DNS server address?
William Huskey
william.huskey at gmail.com
Sat Nov 29 18:20:10 EST 2008
Its not an issue that it would not inter fear in windows.. it would not
compile in MicroSoft .NET with out the Mono Specific Library.. cross
platform means that it would work when compiled with mono the same as when
compiled with MS .NET compiler. it also means that once compiled it would
run on both platforms with no extra libraries. once compiled to an IL would
it not have a link to the mono library which would be missing on most
windows systems.
which means you will need to write to mono, or write to .Net.
if your code does the decision of the platform, then your code will compile
on all systems.
some things are a pain if you want to work on other OS, this is a simple fix
like the difference in "clear" and "clr" depending if you are on windows or
Linux.
I have a feeling that the bug report will get ignored, getting to full .net
2.0 and 3.0 - 3.5 is a better use of time I would think.
but its your time, as this could have been coded and bug tested. I hope its
not for work.
On Sat, Nov 29, 2008 at 1:13 PM, Petit Eric <surfzoid at gmail.com> wrote:
> 2008/11/29 chenxing <cxcxcxcx at gmail.com>:
> >
> >
> >
> > William Huskey wrote:
> >>
> >> the problem is that if mono did it in a better way, it would not work on
> >> windows.. because .Net does not do it that way. so you have to give up
> >> some
> >> cross platform. that is unless you use mono on windows..
> >> but as long as a Mono is a implementation of .net on Unix/Linux it will
> >> follow the way of MicroSoft .Net
> is it bad to write in mono framework, for those particulary case,
> something like :
> if(Environment.osplatforme = unix)
> {
> use unix stuff
> }
> else
> {
> use windows stuff
> }
> ??
> >>
> >> Sorry
> >>
> >>
> >
> > I don't think so. They doesn't conflict. In Windows, the function returns
> > the DNS Server Address registered to the corresponding Network Interface,
> > and in Linux, the function can return the collection of DNS Server
> Addresses
> > registered to system, because they are used by each Network Interface in
> > fact.
> >
> > BTW, I have posted a bug and it is assigned now.
> > --
> > View this message in context:
> http://www.nabble.com/How-to-get-the-DNS-server-address--tp20733912p20749433.html
> > Sent from the Mono - General mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
>
> --
>
> Cordially.
>
> Small Eric Quotations of the days:
> ---------------------------------------------------------------------------
> If one day one reproaches you that your work is not a work of
> professional, say you that:
> Amateurs built the arch of Noah, and professionals the Titanic.
> ---------------------------------------------------------------------------
>
> Few people are done for independence, it is the privilege of the powerful
> ones.
> ---------------------------------------------------------------------------
>
> No key was wounded during the drafting of this message.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
--
William S. Huskey
UNIX Systems Engineer
Maritime Systems Solutions Division
SAIC
Tel: 425-267-5643
Email: huskeyw at saic.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081129/b6bf40bd/attachment.html
More information about the Mono-list
mailing list